There was an error while loading. Please reload this page.
1 parent fc207d3 commit 2b665b1Copy full SHA for 2b665b1
1 file changed
16/2.py
@@ -16,7 +16,7 @@
16
if j == i:
17
up = 0
18
else:
19
- up = data[i - 1][j]
+ up = dp[i - 1][j]
20
# 최대 합을 저장
21
dp[i][j] = dp[i][j] + max(up_left, up)
22
0 commit comments