You are given an integer array nums of length n.
An index i (i n nums[i] > nums[i - 1] and nums[i] > nums[i + 1].
In a single operation, you can select any index and increase nums[i] by
Return the minimum number of operations needed to achieve the maximum possible number of special indices.
Constraints:
n
nums[i]
You are given an integer array nums of length n.
An index i (i n nums[i] > nums[i - 1] and nums[i] > nums[i + 1].
In a single operation, you can select any index and increase nums[i] by
Return the minimum number of operations needed to achieve the maximum possible number of special indices.
Constraints:
n
nums[i]