Find the minimum sum when traversing a grid from top to bottom, moving diagonally or straight down.
Constraints
Example
>>> min_falling_path_sum([[2,1,3],[6,5,4],[7,8,9]]) 13 >>> min_falling_path_sum([[-19,57],[-40,-5]]) -59 >>> min_falling_path_sum([[5]]) 5
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints