#3402
Minimum Operations to Make Columns Strictly Increasing
newbie · 270 · lc easy +19 · 72.6% accepted · 65 likes · top 82%
Description
You are given an m x n matrix grid of non-negative integers.
In one operation, increment any grid[i][j] by 1.
Return the minimum number of operations required to make every column of grid strictly increasing (top to bottom).
Code
1
2
3