Greedy change-making
Pays an amount by taking the biggest coin that fits, again and again. It is quick, and on some coins it gives the fewest, but not on all. So after it pays, every way of paying is tried, to see whether fewer coins would do.
the coins each way takes, by how many of each bigger coin
- coins held against what is left
- 0
- ways tried
- 0
step 1 of 1
Examples