Here is a version of the Greedy Coin Changer problem inspired by these Scala and Python solutions.
This solution uses Java 5 enums (supported in Groovy 1.5+) and Groovy 1.6 multi-assignment, but other variations are possible.
Labels
Here is a version of the Greedy Coin Changer problem inspired by these Scala and Python solutions.
This solution uses Java 5 enums (supported in Groovy 1.5+) and Groovy 1.6 multi-assignment, but other variations are possible.