I hereby claim:
- I am tonyedgecombe on github.
- I am tonyedgecombe (https://keybase.io/tonyedgecombe) on keybase.
- I have a public key ASDjFC3tyv1s73L5Urrx9VyMv7N2teQvk1FJ5k7WxuCZUwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Calculate the ways to make a pound from UK change | |
// UK common coinage, must be ordered high to low | |
var coinage = [100, 50, 20, 10, 5, 2, 1]; | |
// £1.00 | |
var total = 100; | |
var result = count(coinage, total); |