3402. Minimum Operations to Make Columns Strictly Increasing
You are given a
m x n
matrixgrid
consisting of non-negative integers.In one operation, you can increment the value of any
grid[i][j]
by 1.Return the minimum number of operations needed to make all columns of
grid
strictly increasing.
1 | class Solution { |