Wrong output count binary problem
@mddanish use 2 one-d array instead of 2-d array.One dp array for first array me no of strings without consecutive ones ending with zero lelo and next array me ending with one lelo and then think of recurrence relation which you have applied in your logic ,you will get correct output.Try it and feel free to ask any doubt.

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.