There was an error while loading. Please reload this page.
1 parent a312f0e commit 696ee4fCopy full SHA for 696ee4f
minimumPathSum.py
@@ -14,3 +14,8 @@ def minPathSum(self, grid):
14
for j in range(1, n):
15
grid[i][j] += min(grid[i-1][j], grid[i][j-1])
16
return grid[-1][-1] #the top left element contains the solution
17
+
18
19
20
21
0 commit comments