I want to know the idea of algorithm for the coin change problem where each denomination has infinte number of coins. Means how to apply DP (like the standard coin change pr
You can run it here http://www.exorithm.com/algorithm/view/coin_change
function coin_change ($amount, $coins) { $change = array(); rsort($coins); for($i=0; $i