Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Making Change by gyahun_dash
def checkio(price, denoms):
sums = set()
for number in range(1, price + 1):
sums = {s + d for s in sums for d in denoms} or set(denoms)
if price in sums: return number
March 22, 2016
Comments: