mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 20:40:39 +08:00
Apply suggestions from code review
This commit is contained in:
@ -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];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user