← All problems

Jump Game II (min jumps)

Medium dynamic programminggreedyarrays LeetCode ↗
Minimum jumps to reach the end (each element = max jump length).

Hints (0/3 revealed)

Log in to reveal hints progressively.

Complexity

Time O(n), Space O(1)

Common pitfalls

  • DP O(n^2) when greedy suffices
  • Counting the final jump wrong

Your solution

Log in to save your code and track progress.