little strokes fell great oaks.
Backpack with Value array: note that: "And the number of these merchandises can be considered as infinite." function: dp[i] |= dp[i - nums[j] * k]; (when you take that ith item) or dp[i] = false; (when you don't take that ith item)
No comments:
Post a Comment