Chef Digit Jump clarificiation: can chef jump back to more than one index if digit same

What is meant by Chef can’t jump out from sequence, can he jump back to same same number

What is result for this test case

0 1 2 3 4 5 9 6 7 8 9 0 1 2 3 4 5

is it 5:
0 - 11 -> 10 -> 6 -> 5 -> 16

or 6

0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 16

1 Like

same doubt

Okay tell me exactly what it meant by Chef cannot jump out from sequence in problem statement

It means that if the array size is 100 and you are standing at position 100, then you cannot go to 101.Ideally you are expected to understand this on your own.

yes, it has confusion, jumping in sequence means he cannot go back, but there is chance to go i-1 index, so going back is allowed, my doubt is going jumping back more than one index if the digit is same, is it valid or not.