83. Jump Game

You start at index 0; nums[i] is the maximum jump length from position i. Can you reach the last index?

Example 1

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

Example 2

Input: nums = [3,2,1,0,4]
Output: false
Hint 1

Track the furthest index you can reach. If you ever stand beyond it, you are stuck.

Greedy