#1827
Minimum Operations to Make the Array Increasing
newbie · 155 · lc easy +14 · verified · 81.9% accepted · 1,317 likes · top 93%
Description
Given an integer array nums, in one operation you may increment any element by 1. Return the minimum number of operations to make nums strictly increasing. A single-element array is already strictly increasing.
Code
1
2
3