Skip to content

Commit 696ee4f

Browse files
authored
Update minimumPathSum.py
1 parent a312f0e commit 696ee4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

minimumPathSum.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ def minPathSum(self, grid):
1414
for j in range(1, n):
1515
grid[i][j] += min(grid[i-1][j], grid[i][j-1])
1616
return grid[-1][-1] #the top left element contains the solution
17+
18+
19+
20+
21+

0 commit comments

Comments
 (0)