Skip to content

Commit 2b665b1

Browse files
authored
Update 2.py
1 parent fc207d3 commit 2b665b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

16/2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
if j == i:
1717
up = 0
1818
else:
19-
up = data[i - 1][j]
19+
up = dp[i - 1][j]
2020
# 최대 합을 저장
2121
dp[i][j] = dp[i][j] + max(up_left, up)
2222

0 commit comments

Comments
 (0)