更新代码块
This commit is contained in:
@@ -153,7 +153,7 @@ dp[1] = dp[1 - weight[0]] + value[0] = 15
|
||||
|
||||
## 一维dp01背包完整C++测试代码
|
||||
|
||||
```C++
|
||||
```CPP
|
||||
void test_1_wei_bag_problem() {
|
||||
vector<int> weight = {1, 3, 4};
|
||||
vector<int> value = {15, 20, 30};
|
||||
|
||||
Reference in New Issue
Block a user