#3282
Reach End of Array With Max Score
expert · 1090 · lc medium +32 · 33.5% accepted · 225 likes · top 11%
Description
You are given integer array nums of length n. Starting at index 0, jump forward to index n - 1. A jump from i to j scores (j - i) * nums[i]. Return the maximum total score.
Code
1
2
3