What does this mean??? i - 1 (Si-1) and i + 1 (Si+1)
Can somebody explain the 2nd test case
Input:
012134444444443
Output: 4
The jump sequence mentioned is 1-2-4-5-15. I am not able to understand how we got this sequence... Thanks :D
What does this mean??? i - 1 (Si-1) and i + 1 (Si+1)
Can somebody explain the 2nd test case
Input:
012134444444443
Output: 4
The jump sequence mentioned is 1-2-4-5-15. I am not able to understand how we got this sequence... Thanks :D