Skip to content

Commit

Permalink
Update 背包问题理论基础完全背包.md
Browse files Browse the repository at this point in the history
删除多余字符
  • Loading branch information
Dewittt authored Feb 14, 2022
1 parent 4596847 commit 2440d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/背包问题理论基础完全背包.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dp状态图如下:

看了这两个图,大家就会理解,完全背包中,两个for循环的先后循序,都不影响计算dp[j]所需要的值(这个值就是下标j之前所对应的dp[j])。

先遍历被背包在遍历物品,代码如下:
先遍历背包在遍历物品,代码如下:

```CPP
// 先遍历背包,再遍历物品
Expand Down

0 comments on commit 2440d6a

Please sign in to comment.