Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2747c40

Browse files
Merge pull request youngyangyang04#616 from Nixiak-nan/master
Update 背包理论基础01背包-1.md
2 parents 37081f3 + 20182c7 commit 2747c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎problems/背包理论基础01背包-1.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ dp[0][j],即:i为0,存放编号0的物品的时候,各个容量的背包
103103

104104
那么很明显当 j < weight[0]的时候,dp[0][j] 应该是 0,因为背包容量比编号0的物品重量还小。
105105

106-
当j >= weight[0],dp[0][j] 应该是value[0],因为背包容量放足够放编号0物品。
106+
当j >= weight[0],dp[0][j] 应该是value[0],因为背包容量放足够放编号0物品。
107107

108108
代码初始化如下:
109109
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /