Skip to content

Commit fa309c9

Browse files
authored
Update 背包问题理论基础完全背包.md
1 parent 4bbd571 commit fa309c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/背包问题理论基础完全背包.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ dp状态图如下:
8080
* [动态规划:关于01背包问题,你该了解这些!](https://programmercarl.com/背包理论基础01背包-1.html)
8181
* [动态规划:关于01背包问题,你该了解这些!(滚动数组)](https://programmercarl.com/背包理论基础01背包-2.html)
8282

83-
就知道了,01背包中二维dp数组的两个for遍历的先后循序是可以颠倒了,一位dp数组的两个for循环先后循序一定是先遍历物品,再遍历背包容量。
83+
就知道了,01背包中二维dp数组的两个for遍历的先后循序是可以颠倒了,一维dp数组的两个for循环先后循序一定是先遍历物品,再遍历背包容量。
8484

8585
**在完全背包中,对于一维dp数组来说,其实两个for循环嵌套顺序同样无所谓!**
8686

0 commit comments

Comments
 (0)