What's wrong with this Code?

Can someone please tell me the test cases at which the code is not giving the proper output.

Problem Statement:- https://www.codechef.com/problems/DIGJUMP
Solution:- https://www.codechef.com/viewsolution/25016372

0111111112302
your code gives: 4
ans: 2

2 Likes