Skip to content

Commit 6626d95

Browse files
committed
Runtime: 3 ms (Top 82.59%) | Memory: 46.9 MB (Top 82.02%)
1 parent da59f13 commit 6626d95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/M/Minimum Falling Path Sum/Minimum Falling Path Sum.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 3 ms (Top 82.59%) | Memory: 46.9 MB (Top 82.02%)
12

23
class Solution {
34
public int min(int[][] matrix, int[][]dp, int i, int j)
@@ -21,7 +22,7 @@ else if(j==matrix.length -1)
2122
}
2223
return dp[i][j];
2324
}
24-
25+
2526
public int minFallingPathSum(int[][] matrix) {
2627
int dp[][] = new int[matrix.length][matrix.length];
2728
if(matrix.length == 1)
@@ -36,4 +37,4 @@ public int minFallingPathSum(int[][] matrix) {
3637
}
3738
return min;
3839
}
39-
}
40+
}

0 commit comments

Comments
 (0)