Getting wrong answer

the code is giving all correct
100% score

on spoj- problem eko

didnt get u
please provide spoj q link if did not work on spoj
for cb the code runs fine

image
u need to start search space from 0


refer to this code

made the changes in start of search space. Can you please tell me the flaw in my code? What am I doing wrong?

hey a lot of update in logic is requireddd ( made changes to ur code ) isPossible code had change in logic
i have added comments where update madesss

in case u dont understand please ping back

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.