Php – Give change using optimal denominations
I'm struggling to solve a problem regarding a script: Rule : The cash register only has $2, $5, and $10 bills. Your algorithm should determine the best way to give change for any amount, using the fewest bills possible. test…