Skip to content

Commit 33466d4

Browse files
committed
practice
1 parent 0488ecf commit 33466d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/problems/leetcode/MinimumPathSum.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public static void main(String[] args) {
1212
System.out.println(minPathSum(grid));
1313
}
1414

15+
// runtime: O(N * M)
16+
// space: O(N * M)
1517
public static int minPathSum(int[][] grid) {
1618
if (grid == null || grid.length == 0) {
1719
return 0;

0 commit comments

Comments
 (0)