problem – count binary string https://ide.codingblocks.com/s/236485
Code is giving TLE
You need to use dp in order to avoid TLE.
ok thank you but abhi dp nhi kraya vaise logic is fine naa??
Yes logic is absolutely fine.
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.