I am getting WA on all the test cases in the above code,. I have applied the same logic as the one used in find no. of binary strings with no consecutive ones.
Recursion Class Assignment Problem WA
1 Like
@rakshitsingh05
You were not printing the test case number.
System.out.println("#" + n + " : " + findCount(n));
Try to debug these errors by yourself and try some test cases.
I hope I have solved your doubt. You may now close the doubt.