Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Making Change by _Chico_
def checkio(price, denominations):
table = [0] + [price + 1] * price
for coin in denominations:
for i in range(coin, price + 1):
table[i] = min(table[i], table[i - coin] + 1)
return table[price] if table[price] <= price else None
May 29, 2021