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

修改错别字
This commit is contained in:
Jeremy Feng
2023-03-31 00:35:33 +08:00
committed by GitHub
parent 5c0e98ef29
commit d2811139ae

View File

@ -41,7 +41,7 @@
* [动态规划关于01背包问题你该了解这些](https://programmercarl.com/背包理论基础01背包-1.html)
* [动态规划关于01背包问题你该了解这些滚动数组](https://programmercarl.com/背包理论基础01背包-2.html)
首先回顾一下01背包的核心代码
首先回顾一下01背包的核心代码
```cpp
for(int i = 0; i < weight.size(); i++) { // 遍历物品
for(int j = bagWeight; j >= weight[i]; j--) { // 遍历背包容量