Given array of jump lengths at each position, determine if you can reach the last index.
Track the maximum reachable index. If current index exceeds it, stuck.
- Track maxReach = 0
- For each index i from 0 to n-1
- If i > maxReach return false
- Update maxReach = max(maxReach, i + nums[i])
- Return true
- Time Complexity: O(n)
- Space Complexity: O(1)