Back to DSA sheet

Jump Game

MediumGreedy
Open on LeetCodeAmazonGoogleMicrosoft

Each value is the maximum jump length from that index. Return true if you can reach the last index.

Constraints
  • 1 <= nums.length <= 10^4
  • 0 <= nums[i] <= 10^5
Sheets
Blind 75Grind 75Love Babbar 450NeetCode 150NeetCode 250Striver A2Z
jump-game.cpp
Loading editor
Custom input (stdin)
Output

Run your code to see its output.