LintCode 563.Backpack V (M)
Given n items with size nums[i]
which an integer array and all positive numbers. An integer target
denotes the size of a backpack. Find the number of possible ways to fill the backpack.
Each item may only be used once
Example
Given candidate items [1,2,3,3,7]
and target 7
,
return 2
Solution:
Last updated