Problem 55 · Medium

Jump Game

Decide whether the last index can be reached when each value is a maximum jump length. The visual sweeps left to right while tracking the farthest index reachable so far.

Open the interactive visualisation