Problem 45 · Medium

Jump Game II

Find the fewest jumps needed to reach the last index, where each value gives the maximum forward jump from its position. The visual shows reachable ranges as layers, extending the farthest reach inside each jump before committing to the next one.

Open the interactive visualisation