-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Day-23 q1 Minimum falling path sum #446
Comments
@kratika-Jangid @karishma-2020 @bh-g please merge the question #429. Thanks :) |
@bh-g Pls assign this issue to me for a java solution |
@bh-g @kratika-Jangid Please assign this issue to me for cpp solution... |
pls merge the solution of this question #483 thanks :) |
@bh-g please assign this issue to me |
please assign this question to me :) @bh-g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimum Falling Path Sum
Given an n x n array of integers
matrix
, return the minimum sum of any falling path through matrix.A falling path starts at any element in the first row and chooses the element in the next row that is either directly below or diagonally left/right.
Specifically, the next element from position (row, col) will be (row + 1, col - 1), (row + 1, col), or (row + 1, col + 1).
Example 1:
Input
: matrix = [[2,1,3],[6,5,4],[7,8,9]]Output
: 13Explanation
: There are two falling paths with a minimum sum as shown.Example 2:
Input
: matrix = [[-19,57],[-40,-5]]Output
: -59Explanation
: The falling path with a minimum sum is shown.Constraints:
The text was updated successfully, but these errors were encountered: