Dynamic Programming: Knapsack - Number of Ways to Make Change
Consider a bottom-up dynamic programming solution that uses a 1D array to count the number of ways to make change for an amount
W using n coin denominations. What is the overall time complexity of this approach?