Dynamic Programming: Knapsack - Perfect Squares
Suppose the problem is modified so that you want to find the minimum number of perfect squares summing to
n, but now each perfect square can only be used at most once. Which of the following changes correctly adapts the algorithm?