• + 2 comments

    I think this problem needs more clarification. For example, the first test case with a sum of 12 can be solved in 3 ways:

    A). twelve 1s B). two 6s C). one 9 and three 1s

    The unbounded knapsack problem tries to maximize the value of the objects placed into the knapsack. In this problem, there are no values for the objects, so there needs to be an additional phrase along the lines of "minimize the # of numbers used".