You are given an integer array nums.
Starting at index i to any index j such that i < j. The score obtained from jumping from index i to index j is nums[j].
You can perform any number of jumps until you reach the last index of nums.
Return the maximum total score you can achieve.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
Starting at index i to any index j such that i < j. The score obtained from jumping from index i to index j is nums[j].
You can perform any number of jumps until you reach the last index of nums.
Return the maximum total score you can achieve.
Constraints:
nums.length
nums[i]