Ladder Recursion

How the function can return 1 if n==0 ?

Hey @vanshikasharma1645 :grinning:,n==0 return 1 means , suppose that you are on ground and you want to reach the ground for that there’s only one way I.e., you stay on ground. Thereby when n==0 we will return 1
You will get more clear idea when Prateek bhaiya will make a dry run for you in the same video . Happy to help :grinning: Keep Coding

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.