Binary string recursion

For the base case why we have to take
if(n==0) return 1

hi @Sitikant
if we consider an empty string, it is also a valid case. (there are no consecutive 1’s)

ohh…Thanks for your help …

1 Like

@Sitikant dont forget to mark your doubt as resolved :slight_smile: