Given piece sizes you can reuse without limit, find the fewest pieces that add up exactly to a total, or -1.
Given piece sizes you can reuse without limit, find the fewest pieces that add up exactly to a total, or -1.
The discussion opens with the full question.