What does this mean??? i  1 (Si1) and i + 1 (Si+1) Can somebody explain the 2nd test case Output: 4 The jump sequence mentioned is 124515. I am not able to understand how we got this sequence... Thanks :D asked 09 Jun '14, 04:02

The question has been closed for the following reason "Other" by garakchy 09 Jun '14, 19:54
It means you can jump one index left(S11) or one index right(Si+1). In this case chef jumps to 1 then to the second 1(index 4) then to 3(index 5) then as the last element is also 3, he can jump to the final index(15). answered 09 Jun '14, 04:46

can any one tell me jump can be made reverse also..? Eg: 0123456754360123457 Ans 5 correct or not.?