Minimum Nondecreasing Increment
Given an integer array nums, you may perform at most one operation: choose a set of pairwise non-adjacent indices and add the same non-negative integer x to every chosen element.
Return the m...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
