PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Coding & Algorithms/Waymo

Can You Reach the Last Index?

Last updated: Apr 6, 2026

Quick Overview

This question evaluates a candidate's understanding of array traversal and reachability in sequences of jumps, along with the ability to reason about algorithmic time and space complexity.

  • medium
  • Waymo
  • Coding & Algorithms
  • Software Engineer

Can You Reach the Last Index?

Company: Waymo

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

You are given an array `nums` of non-negative integers. You start at index `0`. From index `i`, you may jump to any index `j` such that `i < j <= i + nums[i]`. Return `true` if there exists a sequence of jumps that reaches the last index of the array, and `false` otherwise. Example: - Input: `nums = [2, 3, 1, 0, 4]` - Output: `true` Explain the approach you would use and its time complexity.

Quick Answer: This question evaluates a candidate's understanding of array traversal and reachability in sequences of jumps, along with the ability to reason about algorithmic time and space complexity.

Related Interview Questions

  • Expand Nested Repetition Expressions - Waymo (medium)
  • Find Shortest Paths to Target Nodes - Waymo (medium)
  • Implement Safe Average Function - Waymo (medium)
  • Serialize Expression Tree Minimizing Parentheses - Waymo (medium)
  • Find Shortest Knight Path - Waymo (medium)
Waymo logo
Waymo
Feb 6, 2026, 12:00 AM
Software Engineer
Onsite
Coding & Algorithms
5
0
Loading...

You are given an array nums of non-negative integers.

You start at index 0. From index i, you may jump to any index j such that i < j <= i + nums[i].

Return true if there exists a sequence of jumps that reaches the last index of the array, and false otherwise.

Example:

  • Input: nums = [2, 3, 1, 0, 4]
  • Output: true

Explain the approach you would use and its time complexity.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Waymo•More Software Engineer•Waymo Software Engineer•Waymo Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.