for j in [c for c in coinValueList if c <= cents]:
    if minCoins[cents - j] + 1 < coinCount:
        coinCount = minCoins[cents - j] + 1
minCoins[cents] = coinCount
return minCoins[change]
Dynamic Programming Optimal Coin Change