You WILL Understand Recursion After Watching This

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

Комментарии • 75

  • @SetUpOr1g1n
    @SetUpOr1g1n Год назад +110

    Literally the best explainer.

  • @Onrirtopia
    @Onrirtopia Год назад +45

    fun fact: the command "pip" is a recursive acronym that mentions itself, eg. it means: "pip installs packages"

    • @ilmansalt
      @ilmansalt Год назад +5

      Lmao, same with Wine with the acronym "Wine is not an emulator". Developers love doing this for some reason 😂

    • @oathbreaker3503
      @oathbreaker3503 10 месяцев назад +1

      same with GNU

    • @pajeet_slayer
      @pajeet_slayer 5 месяцев назад

      ​@n0tjak*programmers hate php

  • @sabafaisal1834
    @sabafaisal1834 3 месяца назад +6

    Literally the best recursion explain i have seen. I have been struggling with this for the past weeks only i have finally learned it thanks to you 👍

  • @milo932
    @milo932 6 месяцев назад +4

    Ive been stuck on this concept for like a week. Thank you for the visual representation in the code that helped SO MUCH. Earned a subscriber thanks again!

  • @Mr.Fantomblox
    @Mr.Fantomblox Год назад +11

    Bro I started an algorithm course 2 weeks ago and I stopped because I couldnt understand recursion even after watching several videos on youtube, Now i actually understand how it works thanks.

  • @jbear210
    @jbear210 2 месяца назад +1

    mate I was so confused until I watched this video - amazing visuals and I will be subscribing to your channel! Keep up the good work.

  • @CJ-t5b
    @CJ-t5b 14 дней назад

    THANK YOU recursion was breaking my brain and this completely reassembled it.

  • @odin9054
    @odin9054 Год назад +8

    finally, an explanation on recursion i can understand!

  • @UDroidMania
    @UDroidMania 10 месяцев назад

    Finally! Someone who explained recursion in a way that I can understand it. Well done and thank you!

  • @montagetm
    @montagetm Год назад +18

    Awesome way of solving factorials! Never thought of doing that, great explanation of recursion!

    • @djimi9803
      @djimi9803 Год назад +1

      Try to solve Fibonacci using recursion

    • @montagetm
      @montagetm Год назад

      @@djimi9803 I'll give it a shot

    • @montagetm
      @montagetm Год назад +1

      @@djimi9803 Ive made two version, one of them require you to input the two starting numbers of the sequence and how many numbers of the sequence you want to print. The other version only requires a number of how many numbers in the sequence you want to print, however its ever so slightly more code.

    • @FlashAm
      @FlashAm Год назад

      import math
      math.factorial(3)
      this method is much quicker and doesn't use recursion. The function shown in the video was just an example to show how recursion works

    • @montagetm
      @montagetm Год назад

      @@FlashAm yh I know that, I just think it's pretty cool

  • @ahmedabdulkarim3996
    @ahmedabdulkarim3996 Месяц назад

    One of the best explanations of recursion on RUclips. 🙌🙌 👏👏

  • @aryabalagita6543
    @aryabalagita6543 6 месяцев назад +1

    You are the best teacher who explain this function 🗿

  • @maximillianquaife-larsen3799
    @maximillianquaife-larsen3799 9 месяцев назад

    That was incredible. I’ve been trying to understand recursion for a while

  • @viktoreidrien7110
    @viktoreidrien7110 Год назад +2

    so far the best explanation i've seen

  • @zodeit4678
    @zodeit4678 5 месяцев назад

    This is very helpful just what I've looking for, easy to understand about recursion. Thanks!

  • @Sampsadellic
    @Sampsadellic 4 месяца назад

    Great explanation! love how you break down each step of the recursive calls.

  • @puppergump4117
    @puppergump4117 Год назад +5

    I think recursion is better explained using problems that can't be solved through a simple loop. Such as printing out all permutations of a given sequence with an unknown number of elements.

  • @mind_of_a_darkhorse
    @mind_of_a_darkhorse Год назад +2

    Excellent video of recursion and how to use it!

  • @yoyo231
    @yoyo231 Год назад

    Best explanation of a coding tutorial ive seen

  • @rice3742
    @rice3742 8 месяцев назад

    Thank you..Finally understood the logic behind this

  • @tj9382
    @tj9382 Год назад

    Yeah I simply must echo the praise of the previous comments. Brilliant explanation.

  • @Alvarez-ls6bt
    @Alvarez-ls6bt 5 месяцев назад

    Awesome video!! Helped me fully grasp how recursion works.

  • @commandermanto2202
    @commandermanto2202 Год назад +1

    Wow, that was an amazing explanation! You covered all the bases and questions I had, thank you!

  • @jacklee26
    @jacklee26 Год назад

    One of the best explanations ever , really clear understand

  • @bulcsuilles9065
    @bulcsuilles9065 Месяц назад

    The explanation was perfect, now I finally understand it. Thanks!

  • @rayenamarir5764
    @rayenamarir5764 13 дней назад

    So far this is the best video explaining recursion

  • @0e0
    @0e0 Год назад

    you have an amazing communication style for this stuffs.

  • @gopalakrishnagk7979
    @gopalakrishnagk7979 Год назад +1

    If this guy would be my computer teacher I would go on a cuber war with north Korea fr!!

  • @njoura7
    @njoura7 24 дня назад

    thanks!! Finley got it 🎉 well explained !!

  • @akashverma5756
    @akashverma5756 10 месяцев назад

    Imagine recursive function as alien species which have specific role to perform and they multiple everytime they are called.

  • @jamesb7948
    @jamesb7948 Год назад

    Great video, thanks for the explanation :)

  • @nehmiatewachew4693
    @nehmiatewachew4693 Год назад +1

    Thank you bro you have no idea how you helped me

  • @sevenmaduka4793
    @sevenmaduka4793 Год назад

    Wowww amazing explanation!!

  • @axmy1776
    @axmy1776 Год назад

    Which colour theme are you using in vscode?

  • @AHafeez_
    @AHafeez_ 14 дней назад

    YES, THIS WAS THE VIDEO I WAS LOOKING FOR!

  • @user-yf3nl8en2
    @user-yf3nl8en2 Год назад

    What theme is it?

  • @annon010
    @annon010 Год назад

    im a bit late but
    remember to make sure n is an integer because otherwise n will never equal 1

  • @bhanubhattarai13
    @bhanubhattarai13 Год назад

    What's the theme and font used here anyone? Please

  • @mldchan
    @mldchan Год назад

    What font is that?

  • @brandonsager223
    @brandonsager223 10 месяцев назад

    Only takes a few minutes to go from dumb person to smart person 🎉

  • @kewlrsb3012
    @kewlrsb3012 2 месяца назад

    Thank you!

  • @mub03
    @mub03 Год назад

    Excellent

  • @DarkAcademyUniversity
    @DarkAcademyUniversity 6 месяцев назад

    best explanation

  • @yan3735
    @yan3735 10 месяцев назад

    no way it's so damn simple

  • @ShenZhen642
    @ShenZhen642 Год назад

    Thank you very much !

  • @panizzutti
    @panizzutti Месяц назад

    INCREDIBLE THIS SAVED ME

  • @ata780
    @ata780 Год назад

    Is a for loop considered recursion?

    • @Scymet
      @Scymet Год назад +1

      No, that's iteration

    • @ata780
      @ata780 Год назад +1

      @Scymet thanks. I did end up looking more into this. I'm aware of the differences now

  • @kimmena5586
    @kimmena5586 Год назад

    Im just learning python for like a month and I cant understand a line of code last night maybe because life knows that youtube will give it to me this morning

  • @Marcus07end
    @Marcus07end 4 месяца назад

    That did help thank you very much

  • @ErikS-
    @ErikS- Год назад

    Try to do a negative number with this implementation ;-)

  • @oosmanbeekawoo
    @oosmanbeekawoo Год назад +1

    You coulda trolled everyone with Google saying University of Utah says, “To be able to understand recursion you have to understand recursion!”
    ..what does that even mean? xD

  • @bookzdotmedia
    @bookzdotmedia Год назад

    Top dog teaching!

  • @MohammadAli-kg8jt
    @MohammadAli-kg8jt Месяц назад

    you saved me thanks

  • @noodle7788
    @noodle7788 Год назад

    i love this guy

  • @montagetm
    @montagetm Год назад +1

    YAY!

  • @alhabib_o
    @alhabib_o 4 месяца назад

    Goaaaat

  • @Decrupt
    @Decrupt Год назад

    based

  • @n00bxl71
    @n00bxl71 Год назад

    4th comment

  • @poweroffun2831
    @poweroffun2831 Год назад

    That is one of the best explanations I've ever had. Thank you!