3205. Maximum Array Hopping Score I
Given an array
nums, you have to get the maximum score starting from index 0 and hopping until you reach the last element of the array.In each hop, you can jump from index
ito an indexj > i, and you get a score of(j - i) * nums[j].Return the maximum score you can get.
1 | class Solution { |