Dynamic Programming Coin Change Limited Coins
问题 Dynamic Programming Change Problem (Limited Coins) . I'm trying to create a program that takes as INPUT: int coinValues[]; //e.g [coin1,coin2,coin3] int coinLimit[]; //e.g [2 coin1 available,1 coin2 available,...] int amount; //the amount we want change for. OUTPUT: int DynProg[]; //of size amount+1. And output should be an Array of size amount+1 of which each cell represents the optimal number of coins we need to give change for the amount of the cell's index. EXAMPLE: Let's say that we have