Class assignment problem backtracking

i didn’t understand the problem…

Hi @shivabansfore123,
In this problem you have tell the number of n size strings that can be formed with ‘a’ and ‘b’ with no b together … for example for n=3 it can be aaa , aab,aba,baa,aba. However abb will be invalid as two b are together .so the answer is 5 .

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.