We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0488ecf commit 33466d4Copy full SHA for 33466d4
src/problems/leetcode/MinimumPathSum.java
@@ -12,6 +12,8 @@ public static void main(String[] args) {
12
System.out.println(minPathSum(grid));
13
}
14
15
+ // runtime: O(N * M)
16
+ // space: O(N * M)
17
public static int minPathSum(int[][] grid) {
18
if (grid == null || grid.length == 0) {
19
return 0;
0 commit comments