Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Slow solution in Clear category for Making Change by fed.kz
def checkio(price, denominations):
result = 1
money = set(denominations)
while 1:
if price < min(money): return
if price in money: return result
money = {i + j for i in money for j in denominations}
result += 1
Nov. 8, 2018
Comments: