CodingReported in a candidate post, Sep 2020
Minimum increment/decrement to make an array strictly monotonic
Filed under Acko
The question
Find the minimum number of increments or decrements to make the array strictly increasing or strictly decreasing and return the smaller of the two.
No write-up yet. Related questions below have one.
Related Acko questions
Collected from public candidate posts and coding forums. Updated Nov 2026.