Clarification in DIGJUMP

In DIGJUMP problem what does 1 (Si-1) and 1 (Si+1) mean??
Please explain.

1 Like

it says indices i - 1 (Si-1) and i + 1 (Si+1) read it correctly i.e the i-1th and i+1th indices of the array S.

9 Likes