I did'nt understood

why bhaiya says if n=0 we have to return 1 ,please explain this

hello @mayurjhode55

people explain this case like->
for n =0 there is no way so they count this also as one way.

but if u dont want ot make this as ur base case then simply add these two base case

if n==1 // one persone so only one way
return 1
if n==2 // two person so two ways (alone + pair)
return 2

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.