Recursion in 100 Seconds

Recursion in 100 Seconds

Fireship

4 года назад

342,589 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Wasim
Wasim - 06.10.2023 21:57

Recursion is like Newton's first law of motion

Ответить
Franklin Nwokoma
Franklin Nwokoma - 29.09.2023 16:56

The dream analogy is too good. I've been searching for a better analogy than factorials. Thank you. I'm really grateful.

Ответить
MoguMogu
MoguMogu - 20.09.2023 06:11

Every time I am told to do recursion, I shrivel up because how does something call itself. Wouldn't it go into a loop? Wouldn't n never approach the end of the array and instead approach infinity because it just keeps looking again and again. I am so dumb, but idk how I've made it this far by avoiding recursion.

Ответить
Maksym Zakharzhevskiy
Maksym Zakharzhevskiy - 17.09.2023 20:46

honestly I could use a 1000 second video on this topic

Ответить
Scotty9inches
Scotty9inches - 15.09.2023 12:16

damn

Ответить
Digital Diamond
Digital Diamond - 12.09.2023 20:00

As some dude once said;

“In order to understand recursion, one must first understand recursion.”

Ответить
Ravikesh Kumar
Ravikesh Kumar - 14.06.2023 14:44

I think, there is one mistake in function you've written for fib sequence, you should return targetIndex in the base case not 1.

Ответить
genta
genta - 09.06.2023 12:37

cool

Ответить
White Noise Focus
White Noise Focus - 25.05.2023 07:59

I love these videos too. Who did the music for this? 🔥🛸

Ответить
Name
Name - 21.05.2023 09:52

did you upload the video on memorization you mentioned? i can't find it.

Ответить
Scott Bisco
Scott Bisco - 26.04.2023 22:14

As someone who is currently in a year index of 2023, I agree with this.

Ответить
Hstivggf ghyhgfg
Hstivggf ghyhgfg - 29.03.2023 00:13

From 2023 hello world 🌍

Ответить
Alien Xxvi
Alien Xxvi - 20.03.2023 09:30

this guy actually makes programming look fun

Ответить
Ertuğrul Çukuryurt
Ertuğrul Çukuryurt - 30.01.2023 15:58

My second sentence is false. My first sentence is true.

Which sentence is True?

Ответить
Vishwajith Barad
Vishwajith Barad - 18.01.2023 18:22

Where is Memoization video.
Please upload.

Ответить
四月是你的謊言
四月是你的謊言 - 02.01.2023 03:45

where is the memorization video

Ответить
Pi Launchpad
Pi Launchpad - 01.01.2023 16:04

Him: "index 2023"
Me: WHAT how did he know?!

Ответить
Fredrik
Fredrik - 18.11.2022 05:55

I watched this at 1.25 speed

Ответить
Not Given
Not Given - 28.10.2022 07:33

has the memoization fireship video been made yet? I can't seem to find the video. I have other videos to reference for memoization but I like these types of videos for a brief rundown if I ever need a quick refresher

Ответить
Sibusiso Buthelezi
Sibusiso Buthelezi - 08.10.2022 23:01

Bootstrap paradox

Ответить
winson leow
winson leow - 11.06.2022 17:31

Array.reduce…

Ответить
Your Local Potato
Your Local Potato - 25.04.2022 15:22

After my confirmation, I will buy a gaming pc. Then I'm going to make a program with a recursive function and wait until it used up all 16GB of RAM

Ответить
Volcott
Volcott - 20.04.2022 15:55

What a missed opportunity to put at the end "If you want to learn more about recursion, please see Recursion in 100 seconds" :c

Ответить
Rioze
Rioze - 19.04.2022 17:31

Can someone explain how that recursive fibonacci function works? 😰😰

Ответить
feelgood_cinematic
feelgood_cinematic - 17.04.2022 17:18

I love these in 100 seconds videos, please keep em coming!! 📚

Ответить
Misra Aditya
Misra Aditya - 17.04.2022 00:38

Recursion as an alternate way to write loops. Thanks for mentioning this early on, because the concept is a big gotcha when people learn functional programming.

Ответить
j3y
j3y - 16.04.2022 22:08

I think that also talking a bit about the tail call recursion would be nice, since for the fibannaci problem it can make things significantly better with a time complexity of O(n) and auxiliary space of O(n).

Ответить
Indian
Indian - 16.04.2022 21:04

It is programming equivalent of Inception.

Ответить
Yerson Lasso
Yerson Lasso - 16.04.2022 04:12

I can't believe there is not a link to this video in the description

Ответить
nochtczar
nochtczar - 15.04.2022 11:32

Recursive functions and binary trees were one of my favorite topics while learning programming. It's really fun to marvel at how the logic works.

Ответить
Sangchoo1201
Sangchoo1201 - 15.04.2022 10:33

well, a nice way to calculate Fibonacci numbers is, using power of matrix. that has a complexity of O(logN)

Ответить
InspektorDreyfus
InspektorDreyfus - 14.04.2022 23:11

Actually you want to avoid recursion. The point is, you can have recursion without noticing it, when several functions call each other in a circle. And if there is a stopping condition, it is hard to tell what exactly the stopping condition is.

Ответить
Matheus Costa
Matheus Costa - 14.04.2022 16:28

Memoization 👍🏻

Ответить
Saikat Karmakar
Saikat Karmakar - 14.04.2022 08:36

.

Ответить
Nithin Sai
Nithin Sai - 13.04.2022 20:10

if (!woke)

Ответить
Bálint Pécsi
Bálint Pécsi - 13.04.2022 18:12

him: optimize fibonacci with memoization
me:
((1+sqrt(5))^n-(1-sqrt(5))^n)/(sqrt(5)*2^n)

Ответить
BaBomba Gaming
BaBomba Gaming - 13.04.2022 07:48

Recursion in 100 seconds in 100 seconds in 100 seconds 100 seconds in 100 seconds in 100 seconds 100 seconds in 100 seconds in 100 seconds 100 seconds in 100 seconds in 100 seconds (etc)

Ответить
Precious Aleaji
Precious Aleaji - 12.04.2022 23:46

First 100 seconds video I'm seeing on this channel that's really 100 seconds by mathematical standards

Ответить
Phantom Blox
Phantom Blox - 12.04.2022 20:12

Good, now we have 10 functions and lets do recursion with those!

Ответить
Monika
Monika - 12.04.2022 14:12

Nice

Ответить
ZipplyZane
ZipplyZane - 12.04.2022 13:13

Oh. I saw that CS in the thumbnail and misread it as CSS. I was wondering how CSS could be recursive.

Ответить
kklowd
kklowd - 12.04.2022 08:15

I'm still waiting for the memoization video 2 years later

Ответить
Ludwig
Ludwig - 12.04.2022 02:50

Huh. Did that memoisation video ever get made?

Ответить
M B
M B - 12.04.2022 00:35

Well it depends on the language implementation, in lisp iteration and recursion are the same thing and you don't have to warry about maximum recursion depth

Ответить
Low Level Learning
Low Level Learning - 12.04.2022 00:07

Ayyy niceuuu

Ответить
TheShadow
TheShadow - 11.04.2022 23:27

can someone ive me the name of the song plz?

Ответить