This is a Better Way to Understand Recursion

  Рет қаралды 59,030

Alex Hyett

Alex Hyett

Күн бұрын

Пікірлер: 140
@cruzchaps3662
@cruzchaps3662 6 ай бұрын
Bro gave us the inception example and i thought he was going to explain it differently, then boom fibo is back
@ladro_magro5737
@ladro_magro5737 6 ай бұрын
bro said ‘this is a better way to understand recursion’ and proceed not to explain anything useful
@larsybarz
@larsybarz 4 ай бұрын
The recursive joke here is that this is just like any other explanation of recursion
@AbuAl7sn1
@AbuAl7sn1 2 ай бұрын
he explains everything like a magic
@alexhyettdev
@alexhyettdev 2 ай бұрын
Maybe try this video instead kzbin.info/www/bejne/h2mWn4FvbLGJhbc
@shafaitahir4728
@shafaitahir4728 Ай бұрын
bro said ‘this is a better way to understand recursion’ and proceed not to explain anything useful
@noorg9658
@noorg9658 2 күн бұрын
@@alexhyettdevrecursing to understand recursion
@danieldyson2754
@danieldyson2754 8 ай бұрын
In your next video, could you please explain recursion?
@sagarshah5341
@sagarshah5341 7 ай бұрын
In your next video, could you please explain recursion?
@marcusantenor793
@marcusantenor793 7 ай бұрын
@@sagarshah5341In your next video, could you please explain recursion?
@Shubham-fo7ug
@Shubham-fo7ug 6 ай бұрын
​@@marcusantenor793 In your next video, could you please explain recursion?
@seanwhitty3218
@seanwhitty3218 4 ай бұрын
@@Shubham-fo7ug if explanation is null return recursion explanation
@jinyoung-ch
@jinyoung-ch 11 ай бұрын
Wow, stumbled upon this video and floored by the quality of the explanation and inception analogy. Thank you so much!
@alexhyettdev
@alexhyettdev 10 ай бұрын
Thank you! I am glad you liked it.
@arpitkumar4525
@arpitkumar4525 5 ай бұрын
You just told the surface level information/definition. I was hoping you would help develop an intuition for recursion
@weekendsonlyy3947
@weekendsonlyy3947 10 ай бұрын
love the comparison to a movie, keep up the great videos!!
@sebwylleman
@sebwylleman Жыл бұрын
Great explanation and visuals Alex 🔥
@alexhyettdev
@alexhyettdev Жыл бұрын
Thank you!
@etharhussein
@etharhussein 2 ай бұрын
I love the inception example you used! Made a lot of sense when you used that analogy. People should start using analogies more to explain things lol.
@constiskey-fb7sl
@constiskey-fb7sl 18 күн бұрын
That is fascinating that for the fibonachi series, recursion is less efficient, while quick sort is amazing.
@tree3946
@tree3946 Ай бұрын
Sir you explained it so nicely, and that analogy was really helpful 👍👍
@ikroac
@ikroac Жыл бұрын
To understand recursion you need to understand recursion first 😮‍💨
@alexhyettdev
@alexhyettdev Жыл бұрын
To understand recursion you need to understand recursion first 😮‍💨
@douglasmasho2324
@douglasmasho2324 Жыл бұрын
@@alexhyettdev To understand recursion you need to understand recursion first 😮‍💨
@garryanderson9831
@garryanderson9831 Жыл бұрын
@@douglasmasho2324 To understand recursion you need to understand recursion first 😮‍💨
@JoaoVictor-vd9fn
@JoaoVictor-vd9fn Жыл бұрын
@@garryanderson9831 To understand recursion you need to understand recursion first 😮‍💨
@aswina646
@aswina646 8 ай бұрын
​@@alexhyettdev To understand recursion you need to understand recursion first.
@viniBraga10
@viniBraga10 3 ай бұрын
the inception analogy was Brilliant!
@kyomdonalddogo5775
@kyomdonalddogo5775 9 ай бұрын
I dont understand recursion, esp how many times to call it or what operator to use it with. I honestly thank God for loops
@WiggyPineda-eg3gb
@WiggyPineda-eg3gb 8 ай бұрын
thank you so much! I loved the analogy, it really helped and now I must go watch inception again. Ive had a hard time wrapping my head aroound python, I mean I ace my classes so that must mean I understand it right? it just feels like Im not getting it.
@Michael-Mosca
@Michael-Mosca Ай бұрын
recursion is SO GODLY POWERFUL in the right cases
@ohmegatech666
@ohmegatech666 Ай бұрын
I think it's less intuitive to write the fibonacci function using a single base case of n
@blazingguyop
@blazingguyop 10 ай бұрын
The best video on recursion What an example 🙏 Was stuck at why it return back (kick) later understood just thinking logically 😂 Now everything clear 😅👌 Btw now I get it why people call some youtubers underrated😢
@kevint3522
@kevint3522 9 ай бұрын
Very good quality video. It's too high level for my needs though. I need to understand what's happening on the stack and with the stack frames. Do you do anything with combinatorics? Like how to use recursion to find unique combinations of k integers from a list of n integers? I ChatGBT'd it and walked through the solution. The solution wraps a recursive call into a for loop. I can almost trace it, but it is very difficult to understand. I get the impression this is a well-known problem, but I had no prayer of solving it myself because I don't know how to think through it.
@deadvirgin428
@deadvirgin428 6 ай бұрын
If you want a proper answer, the first step is to stay away from webdev channels.
@Nicholas.pl_
@Nicholas.pl_ 5 ай бұрын
same bro
@linux_college
@linux_college 8 ай бұрын
thanks very much simple to understand can you explain to us what is BacktrackingFile please
@kyles115
@kyles115 Жыл бұрын
Why did the programmer get stuck in a recursive loop? Because he wanted to see how deep the rabbit hole went, but he forgot to include a base case in his recursive function. So he just kept calling the function over and over again, each time passing in the same parameters, until his stack overflowed and his program crashed. But don't worry, he learned his lesson. From then on, he always made sure to include a base case in his recursive functions, and he never got stuck in an infinite loop again... at least, not until he started playing with pointers and accidentally created a memory leak. Ah, programming. The gift that keeps on giving, even when you wish it would just stop already.
@alexhyettdev
@alexhyettdev Жыл бұрын
Loved this! There is always something to trip us up. My favourite one is debugging race conditions. They are impossible to replicate if you are stepping through code.
@ghostwarrior7356
@ghostwarrior7356 2 ай бұрын
Nice analogy.
@i_heart_emm
@i_heart_emm 4 ай бұрын
thanks for the explanation 🙂
@freelance-writer
@freelance-writer 3 ай бұрын
"Let me explain recursion by relating it to a notoriously convoluted movie." 😂
@selbymdaka1260
@selbymdaka1260 6 ай бұрын
Can't believed I watched 10 minutes plus of videos trying to understand this only to get it on a 4 minutes 3 seconds video😂.
@digitalgoldmine-007
@digitalgoldmine-007 4 ай бұрын
tomorrow i have an exam n the question will be like they will give me last part of the recursive r any code n want me to write the recursive form of it yet i couldnt get my answer that how to know to write that. if u or anybody know the proceture i will be grateful if u guys tell me.
@lauris5275
@lauris5275 10 ай бұрын
Im learning for some time coding, but recoursion is one of those things that Im very bad at. If you dont need to nest it in the loop its not that hard. But one you need to use it in like 2-3 loops it gets hard.
@brookegerry5058
@brookegerry5058 11 ай бұрын
Great video!
@alexhyettdev
@alexhyettdev 11 ай бұрын
Thanks!
@issameldaghayes5428
@issameldaghayes5428 13 күн бұрын
I believe this movie (Predestination 2014 ) explain the true meaning of recursion, 😂 😂
@rain407
@rain407 10 ай бұрын
Great video!!!
@rain407
@rain407 10 ай бұрын
Great video!!
@rain407
@rain407 10 ай бұрын
Great video!
@adamsmateo2149
@adamsmateo2149 Жыл бұрын
"Don't worry, I won't spoil the movie Inception for you" Proceeds to spoil it for me💔
@alexhyettdev
@alexhyettdev Жыл бұрын
It doesn’t spoil anything beyond what you learn in the first 10 minutes of the film. I watched it again last night. Great film even though it is 13 years old already!
@thepatzer
@thepatzer 5 ай бұрын
Nice work! Adding memoization would mitigate some of the inefficiencies you mentioned.
@josephalbert.
@josephalbert. 9 ай бұрын
did you mean recursion? (this was really funny haha)
@aendriu514
@aendriu514 7 ай бұрын
char* understandRecursion(){ int understood = 0; If(understood) return "finally"; else return understandRecursion; }
@aendriu514
@aendriu514 7 ай бұрын
Notice that understood never becomes 1
@uzairullah-4
@uzairullah-4 2 ай бұрын
came to understand recursion, ended up understanding inception
@MooMoozis
@MooMoozis 2 ай бұрын
Please leave a comment bellow
@theredtree7493
@theredtree7493 3 ай бұрын
This is a Better Way to Understand Recursion
@OulahceneYousra
@OulahceneYousra 8 ай бұрын
did you mean recurions
@MukunthVaibhav
@MukunthVaibhav Ай бұрын
I understood inception better than recursion
@harshmalik3470
@harshmalik3470 28 күн бұрын
Recursion is a Better Way to Understand Recursion
@AjayAbhishek240
@AjayAbhishek240 7 ай бұрын
Recursion
@datasciencetoday7127
@datasciencetoday7127 5 ай бұрын
stack overfflew
@michaelbtw
@michaelbtw 8 ай бұрын
I know you want to be fast for youtube because it's cool and edgy, but if you want people to learn from your videos, pause when you show code or equations and leave them onscreen for a few seconds so people can see what you are talking about - the human brain doesn't do well trying to read and listen at the same time.
@alexhyettdev
@alexhyettdev 8 ай бұрын
I have tried slowing it down a bit in newer videos. It's not really about being cool and edgy (I am too old for that), I just speak faster when nervous. I am still not that comfortable talking to a camera!
@amnesia3490
@amnesia3490 3 ай бұрын
recursion
@kreepar6108
@kreepar6108 Ай бұрын
recursion
@mwansamfula3748
@mwansamfula3748 Жыл бұрын
Recursion
@tempsanity
@tempsanity Жыл бұрын
Recursion
@felonyclown5194
@felonyclown5194 Жыл бұрын
Recursion
@stanislavmladenov8645
@stanislavmladenov8645 9 ай бұрын
Recursion
@sagarshah5341
@sagarshah5341 7 ай бұрын
Recursion
@nunomoto8865
@nunomoto8865 7 ай бұрын
Recursion
@UnknownGamer-lw7zp
@UnknownGamer-lw7zp 4 ай бұрын
🔁
@Mig440
@Mig440 7 ай бұрын
Now do corecursion 😂
@nathanokolo940
@nathanokolo940 Жыл бұрын
recursion
@nathanokolo940
@nathanokolo940 Жыл бұрын
recursion
@nathanokolo940
@nathanokolo940 Жыл бұрын
recursion
@nathanokolo940
@nathanokolo940 Жыл бұрын
recursion
@nathanokolo940
@nathanokolo940 Жыл бұрын
recursion
@nathanokolo940
@nathanokolo940 Жыл бұрын
recursion
@d-19jyotishchandrak70
@d-19jyotishchandrak70 3 ай бұрын
recursion is like:
@d-19jyotishchandrak70
@d-19jyotishchandrak70 3 ай бұрын
recursion is like:
@d-19jyotishchandrak70
@d-19jyotishchandrak70 3 ай бұрын
recursion is like:
@d-19jyotishchandrak70
@d-19jyotishchandrak70 3 ай бұрын
recursion is like:
@d-19jyotishchandrak70
@d-19jyotishchandrak70 3 ай бұрын
...
@Mohyswe
@Mohyswe 11 ай бұрын
That
@Mohyswe
@Mohyswe 11 ай бұрын
actually
@Mohyswe
@Mohyswe 11 ай бұрын
makes
@Mohyswe
@Mohyswe 11 ай бұрын
sense!
@sagarshah5341
@sagarshah5341 7 ай бұрын
And
@sagarshah5341
@sagarshah5341 7 ай бұрын
It
@davidtheeditor925
@davidtheeditor925 3 күн бұрын
to
@objectshowfan362
@objectshowfan362 9 ай бұрын
kzbin.info/www/bejne/h2mWn4FvbLGJhbcsi=nmNVMsu6AHailDE_
@anmjubin5107
@anmjubin5107 2 ай бұрын
Those who didn't understand this video, I think you didn't first understand recursion. This was one of the best explanation of recursion
@NaylaKidd
@NaylaKidd 2 ай бұрын
*the best demonstration of recursion
@KarenLi-ht8it
@KarenLi-ht8it Ай бұрын
bro if we understand recursion we wouldnt be clicking into this video in the first place, this defeats the whole purpose
@DeepakKumar-ob6ps
@DeepakKumar-ob6ps 3 ай бұрын
What was this? And why did KZbin put it on top in my search? BS
@reginald9125
@reginald9125 3 ай бұрын
This is a BAD explanation..
@dijonstreak
@dijonstreak Жыл бұрын
thanks for teaching. NOTHING. so i learned.....NOTHING. !! what a JOKE. !!
@alexhyettdev
@alexhyettdev Жыл бұрын
Why watch a video on recursion if you already understand it?
@whitehh15
@whitehh15 11 ай бұрын
With a comment that dumb; it's safe to assume you're not going to understand recursion no matter how it is taught.
@geoschool2022
@geoschool2022 Жыл бұрын
Fuxk this recursion i leave programming because for this recursion. Now im doing mba 😅
@alexhyettdev
@alexhyettdev Жыл бұрын
To be fair there are only a handful of times that I have put recursion to good use. You could always go back to programming once you have your MBA and start SaaS company!
Git Flow vs GitHub Flow: What You Need to Know
6:16
Alex Hyett
Рет қаралды 25 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Stack vs Heap Memory - Simple Explanation
5:28
Alex Hyett
Рет қаралды 252 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 735 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,8 МЛН
Why I Use C | Prime Reacts
13:00
ThePrimeTime
Рет қаралды 177 М.
8 Data Structures Every Programmer Should Know
17:09
ForrestKnight
Рет қаралды 174 М.
Learn RECURSION in 5 minutes! 😵
5:59
Bro Code
Рет қаралды 174 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 577 М.
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,4 МЛН
Towers of Hanoi: A Complete Recursive Visualization
21:13
Reducible
Рет қаралды 491 М.
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН