Apply suggestions from code review

This commit is contained in:
fwqaaq 2023-05-12 22:09:48 +08:00 committed by GitHub
parent db21086b42
commit 03829cde0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -434,7 +434,6 @@ impl Solution {
dp[0] = 1;
for n in nums {
for s in (n as usize..=size).rev() {
//
dp[s] += dp[s - n as usize];
}
}