FastPrepJump Game II
Problems/Jump Game II

Jump Game II

Navi logoNavi● MediumFULLTIMEPHONE SCREEN

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in a Navi phone screen for a full-time role. The report points to a well-known problem. We chose the function signature, a fixed output order, and the input limits.

Our version is about 98% the same as the reported question.

You are given a zero-indexed array nums. You start at index 0, and nums[i] is the maximum number of indices you may move forward from index i.

Return the minimum number of jumps needed to reach the final index. The input guarantees that the final index is reachable.

Function

jump(nums: int[]) → int

Examples

Example 1

nums = [2,3,1,1,4]return = 2

Jump from index 0 to index 1, then to the final index.

Example 2

nums = [2,3,0,1,4]return = 2

The same two-jump route through index 1 reaches the end.

Example 3

nums = [0]return = 0

No jump is needed when the array has one element.

Constraints

  • 1 <= nums.length <= 10^4.
  • 0 <= nums[i] <= 1000.
  • The final index is reachable from index 0.

Source note: Author-written prompt excerpt retained for source fidelity.

More Navi Phone Screen questions

  • Find K Closest Elements in a Sorted ArrayPHONE SCREEN · Seen Sep 2026

Similar questions at other companies

  • Jump GamePaytm · PHONE SCREENPaytm interview questions
  • Minimum Cost for a Target WeightPace Stock Broking Services · PHONE SCREEN
  • Best Stock Profit With a Sell FeeKaseya · PHONE SCREEN
  • Fewest Jumps to the End or StuckAdobe · PHONE SCREENAdobe interview questions
  • Return a Minimum-Coin Change BreakdownDatadog · PHONE SCREEN · ONSITE INTERVIEWDatadog interview questions
  • Most Relevant Text SpanHebbia · PHONE SCREEN
  • Jump GameZillow · PHONE SCREENZillow interview questions
  • Fewest Jumps to the End of an ArrayRippling · PHONE SCREENRippling interview questions
  • Split Array to Minimize the Largest SumNation with NaMo · PHONE SCREEN
  • Best Time to Buy and Sell StockOracle · PHONE SCREEN · ONSITE INTERVIEWOracle interview questions
See Navi hiring insights
Saved
class Solution {
    public int jump(int[] nums) {
        // write your code here
    }
}
Checking account…