Getting wrong answer in testcase 2 and 3 used fibonacci approach
Count Number of Binary Strings DP
your code is correct
one thing we have to do which is use long long int instead of int because ans will come out a large no which overflow in int .
2 Likes