I have used n+2th fabonacci number
I have used recursive method
I have used dp method
but still iam getting 2 wrong answer …I don’t know why
plz check it once is test cases are right or wrong
here is my code
Count Number of Binary string
@Akashkumar hey akash this question belong to dp so if you have any approach then do discuss recursive function will not work.
and here is dp solution