Clarification in DIGJUMP

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

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.

5 Likes