Given an grid, return the minimum sum of a falling path with non zero shifts.
A falling path with non zero shifts is a selection of exactly one element from each row of grid such that no two elements chosen in adjacent rows share the same column.
Constraints:
n grid.length grid[i].length
n
grid[i][j]
Given an grid, return the minimum sum of a falling path with non zero shifts.
A falling path with non zero shifts is a selection of exactly one element from each row of grid such that no two elements chosen in adjacent rows share the same column.
Constraints:
n grid.length grid[i].length
n
grid[i][j]