You are given an array nums consisting of positive integers.
Starting with an initial score of
nums. If there is a tie, select the one with the smallest index.
Return the total score obtained after all elements in nums are marked.
Constraints:
nums.length
nums[i]
You are given an array nums consisting of positive integers.
Starting with an initial score of
nums. If there is a tie, select the one with the smallest index.
Return the total score obtained after all elements in nums are marked.
Constraints:
nums.length
nums[i]