Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sentinel solution in Clear category for Making Change by DiZ
def checkio(price, denominations):
change = {0}
for coins in range(1, price // min(denominations) + 1):
change = {c + coin for c in change for coin in denominations}
if price in change: return coins
March 26, 2016