Update 0279.完全平方数.md

Python 部分,版本2,第233行少写了一个“:”
This commit is contained in:
ZerenZhang2022
2023-01-18 18:14:38 -05:00
committed by GitHub
parent ab7e2ff9e7
commit 835c9222de

View File

@ -230,7 +230,7 @@ class Solution:
# 遍历物品
for num in nums:
# 遍历背包
for j in range(num, n + 1)
for j in range(num, n + 1):
dp[j] = min(dp[j], dp[j - num] + 1)
return dp[n]
```