I have seen many videos related to recursion , but this is the best video with best example
@CppNuts Жыл бұрын
Thanks
@cid0070074 жыл бұрын
I saw this video 2 times and run same program in my local to understand the concept.. Thanks really nice explanation :)
@CppNuts4 жыл бұрын
Thanks man!!
@cid0070074 жыл бұрын
@@CppNuts After observing video.. Is it fine to say.. "Recursion is function calling itself and creating stack of previous return also(that u called snapshot) .." ??
@CppNuts4 жыл бұрын
@@cid007007 correct!!
@jotirlingswami4426 Жыл бұрын
Sir, can we consider snapshot means that function stack frame of print function? I love your way of explanation.
@CppNuts Жыл бұрын
Hey you are correct !!
@h.n.arvind28125 жыл бұрын
Very nice explanation. Clear Concept... Can you explain about variable declared in recursive functions?... Are they re-initialised everytime the function is called ?
@CppNuts5 жыл бұрын
Yes if variable is non static then it is re initialized all the time.
@adrianstefan18144 жыл бұрын
I don't understand why is reversing, I used tree tracing for the code. I don't know what I'm following wrong.
@CppNuts4 жыл бұрын
I didn't get your comment?
@naveenanandan31753 жыл бұрын
Hi, I don't understand how this reverse is coming three times, i.e 0,1,2.. when print (0) comes then reverse will get executed one time na i.e times = 0. Can you explain how's its calling 1,2 times as well?
@CppNuts2 жыл бұрын
This is for everyone when i don't understand something, i re-watch the video for few more time and try to find the link b/w sentences and then it makes sense after sometime.
@hardeepsingh-is7rl4 жыл бұрын
In order to learn recursion you should learn recursion....... ;)