FastPrepJump Game II
Problems/Jump Game II

Jump Game II

Oracle logoOracle● MediumFULLTIMEONSITE INTERVIEW

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in an Oracle onsite interview. The report names a well-known problem, Jump Game II, but gives no function signature, examples, or input limits. We added those. Our version is about 95% 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.

More Oracle Onsite Interview questions

  • Course ScheduleONSITE INTERVIEW · Seen Nov 2026
  • Shortest Subarray with Sum at Least KONSITE INTERVIEW · Seen Nov 2026
  • Longest Substring Without Repeating CharactersONSITE INTERVIEW · Seen Nov 2026
  • Minimum Meeting RoomsONSITE INTERVIEW · Seen Nov 2026
  • Shortest Window with Required CountsONSITE INTERVIEW · Seen Nov 2026
  • Maximum Subarray Sum with One DeletionONSITE INTERVIEW · Seen Nov 2026
  • Shortest Deletion for Distinct CharactersONSITE INTERVIEW · Seen Nov 2026
  • Count Dropped Rate-Limited RequestsONSITE INTERVIEW · Seen Nov 2026
  • Design Authentication ManagerONSITE INTERVIEW · Seen Oct 2026
  • Maximum Bouquet ValueONSITE INTERVIEW · Seen Oct 2026

Similar questions at other companies

  • Best Time to Buy and Sell Stock IIKotak Mahindra Bank · ONSITE INTERVIEWKotak Mahindra Bank interview questions
  • Maximum Stock Profit with Unlimited TransactionsSalesforce · ONSITE INTERVIEWSalesforce interview questions
  • Maximum Stock Profit with Transaction LimitsMeta · ONSITE INTERVIEWMeta interview questions
  • Jump Game IITripjack · ONSITE INTERVIEWTripjack interview questions
  • First Five Increasing Temperature RangesAmazon · ONSITE INTERVIEW
  • Return a Minimum-Coin Change BreakdownDatadog · PHONE SCREEN · ONSITE INTERVIEWDatadog interview questions
  • Most Transactions Kept Without Going NegativeDocuSign · ONSITE INTERVIEWDocuSign interview questions
  • Best Time to Buy and Sell Stock IIHeadlands Technologies · ONSITE INTERVIEWHeadlands Technologies interview questions
  • Fewest Jumps to the Last IndexC3.ai · ONSITE INTERVIEWC3.ai interview questions
  • Jump GameBloomberg LP · ONSITE INTERVIEWBloomberg LP interview questions

Oracle interview experiences

  • Oracle SWE Onsite Interview Experience: 1 Experience
All Oracle interview questionsSee Oracle hiring insights
Saved
class Solution {
    public int jump(int[] nums) {
        // write your code here
    }
}
Checking account…