Problem 3522 · Medium

Calculate Score After Performing Instructions

Follow the instructions from index zero, adding values and jumping, and stop at the first revisited index.

Open the interactive visualisation