Jump Game

Medium

📝 Description

Determine if you can reach last index (nums[i] = max jump)

Input Format

Array of jump lengths

Output Format

true/false

Constraints

1 ≤ nums.length ≤ 10^4

🔍 Sample Input

[2,3,1,1,4]
            

✅ Sample Output

true
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run