You WILL Understand Recursion After Watching This

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2023
  • ⭐ Join my Patreon: / b001io
    💬 Discord: / discord
    🐦 Follow me on Twitter: / b001io
    🔗 More links: linktr.ee/b001io
    Background Music:
    Slowly by Tokyo Music Walker | / user-356546060
    Music promoted by www.free-stock...
    Creative Commons Attribution 3.0 Unported License
    creativecommon...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 64

  • @SetUpOr1g1n
    @SetUpOr1g1n ปีที่แล้ว +93

    Literally the best explainer.

  • @Onrirtopia
    @Onrirtopia ปีที่แล้ว +37

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

    • @ilmansalt
      @ilmansalt 8 หลายเดือนก่อน +2

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

    • @oathbreaker3503
      @oathbreaker3503 6 หลายเดือนก่อน

      same with GNU

    • @pajeet_slayer
      @pajeet_slayer หลายเดือนก่อน

      ​@n0tjak*programmers hate php

  • @milo932
    @milo932 2 หลายเดือนก่อน +1

    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 ปีที่แล้ว +9

    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.

  • @odin9054
    @odin9054 ปีที่แล้ว +7

    finally, an explanation on recursion i can understand!

  • @montagetm
    @montagetm ปีที่แล้ว +16

    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

  • @zodeit4678
    @zodeit4678 หลายเดือนก่อน

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

  • @UDroidMania
    @UDroidMania 6 หลายเดือนก่อน

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

  • @Sampsadellic
    @Sampsadellic 9 วันที่ผ่านมา

    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.

  • @aryabalagita6543
    @aryabalagita6543 2 หลายเดือนก่อน +1

    You are the best teacher who explain this function 🗿

  • @Alvarez-ls6bt
    @Alvarez-ls6bt หลายเดือนก่อน

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

  • @maximillianquaife-larsen3799
    @maximillianquaife-larsen3799 5 หลายเดือนก่อน

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

  • @viktoreidrien7110
    @viktoreidrien7110 ปีที่แล้ว +2

    so far the best explanation i've seen

  • @mind_of_a_darkhorse
    @mind_of_a_darkhorse ปีที่แล้ว +2

    Excellent video of recursion and how to use it!

  • @rice3742
    @rice3742 4 หลายเดือนก่อน

    Thank you..Finally understood the logic behind this

  • @commandermanto2202
    @commandermanto2202 ปีที่แล้ว +1

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

  • @tj9382
    @tj9382 ปีที่แล้ว

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

  • @poweroffun2831
    @poweroffun2831 ปีที่แล้ว

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

  • @jacklee26
    @jacklee26 ปีที่แล้ว

    One of the best explanations ever , really clear understand

  • @yoyo231
    @yoyo231 ปีที่แล้ว

    Best explanation of a coding tutorial ive seen

  • @gopalakrishnagk7979
    @gopalakrishnagk7979 ปีที่แล้ว +1

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

  • @akashverma5756
    @akashverma5756 6 หลายเดือนก่อน

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

  • @0e0
    @0e0 9 หลายเดือนก่อน

    you have an amazing communication style for this stuffs.

  • @nehmiatewachew4693
    @nehmiatewachew4693 ปีที่แล้ว +1

    Thank you bro you have no idea how you helped me

  • @jamesb7948
    @jamesb7948 11 หลายเดือนก่อน

    Great video, thanks for the explanation :)

  • @annon010
    @annon010 8 หลายเดือนก่อน

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

  • @DarkAcademyUniversity
    @DarkAcademyUniversity 2 หลายเดือนก่อน

    best explanation

  • @Marcus07end
    @Marcus07end 6 วันที่ผ่านมา

    That did help thank you very much

  • @sevenmaduka4793
    @sevenmaduka4793 ปีที่แล้ว

    Wowww amazing explanation!!

  • @axmy1776
    @axmy1776 ปีที่แล้ว

    Which colour theme are you using in vscode?

  • @bhanubhattarai13
    @bhanubhattarai13 ปีที่แล้ว

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

  • @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

  • @ShenZhen642
    @ShenZhen642 ปีที่แล้ว

    Thank you very much !

  • @user-yf3nl8en2
    @user-yf3nl8en2 ปีที่แล้ว

    What theme is it?

  • @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

  • @akatsuki2555
    @akatsuki2555 ปีที่แล้ว

    What font is that?

  • @brandonsager223
    @brandonsager223 6 หลายเดือนก่อน

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

  • @Bhagya_Raju
    @Bhagya_Raju 11 หลายเดือนก่อน

    Love ❤ from india my brother

  • @mub03
    @mub03 ปีที่แล้ว

    Excellent

  • @montagetm
    @montagetm ปีที่แล้ว +1

    YAY!

  • @ErikS-
    @ErikS- ปีที่แล้ว

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

  • @noodle7788
    @noodle7788 ปีที่แล้ว

    i love this guy

  • @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

  • @bookzdotmedia
    @bookzdotmedia ปีที่แล้ว

    Top dog teaching!

  • @yan3735
    @yan3735 6 หลายเดือนก่อน

    no way it's so damn simple

  • @alhabib_o
    @alhabib_o 21 วันที่ผ่านมา

    Goaaaat

  • @n00bxl71
    @n00bxl71 ปีที่แล้ว

    4th comment

  • @Decrupt
    @Decrupt ปีที่แล้ว

    based