Jump Game

You are given an integer array nums. You start at index 0, and each value tells you the maximum number of positions you may jump forward from that index. From index i you may jump any distance from 1 to nums[i].

Return true if some sequence of jumps lands exactly on the last index, and false otherwise.

Examples
Input: [2,3,1,1,4]
Output: true
Hints
Related Problems

Jump Game

You are given an integer array `nums`. You start at index `0`, and each value tells you the maximum number of positions you may jump forward from that index. From index `i` you may jump any distance from `1` to `nums[i]`.