Issue with code

why i am not passing all the test cases even though the output is correct?

u need to add more condition it is not as simple as u are coding

isn’t this problem similar to “COUNT BINARY STRINGS OF LENGTH N WITH NO CONSECUTIVE ONES” ?

yes it is similar to this question

pls tell the creator of this problem to specify the expected output clearly.

okay i`ll convey the same
but like to me the question was clear if u read it twice

problem was clear but the output format wasnt. btw thanks for your help

1 Like

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.