You are given an integer array nums.
You start at index nums.length i, you can jump to any index j such that i i to index j is nums[j].
Return the maximum total score you can achieve by jumping to the last index.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
You start at index nums.length i, you can jump to any index j such that i i to index j is nums[j].
Return the maximum total score you can achieve by jumping to the last index.
Constraints:
nums.length
nums[i]