Binary String recursion

CODE: https://ide.codingblocks.com/s/647545

In this code at n==0 why we are returning 1 although n=0 means the length of string is 0 this means no. of binary strings are also 0.

hi @rahul_bansal
that’s just a base case…

ya I know it is a base case but this will creating a great impact if we change from return 0 to return 1

Hi @rahul_bansal
It’s something that we have to assume…
For more u can refer this YouTube video…
https://youtu.be/nqrXHJWMeBc

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.