In my code of finding the no of alternative 1 binary sting please tell me why my code has o/p in these some i/p

https://ide.codingblocks.com/s/188875

Hey @kailash_01
What you’re printing is basically the fibonacci series. That said, when you reach upto 50 value gets out of range of long long. So the question you’re solving must have a modulo to use on the returned value.

If your doubt is resolved please mark it as closed.

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.