medium Greedy
Jump Game
Each `nums[i]` is the maximum jump length from index i. Starting at index 0, return true if you can reach the last index. Example: [2, 3, 1, 1, 4] → true; [3, 2, 1, 0, 4] → false.
runs in your browser
Each `nums[i]` is the maximum jump length from index i. Starting at index 0, return true if you can reach the last index. Example: [2, 3, 1, 1, 4] → true; [3, 2, 1, 0, 4] → false.