Skip to content

Instantly share code, notes, and snippets.

View dblume's full-sized avatar

David Blume dblume

View GitHub Profile
@dblume
dblume / first_attempt.py
Last active August 29, 2015 14:22
Ways to Break a Dollar into Change
def ways_to_break(amount, coins):
"""
:param amount: the monetary value to break into some number of coins
:param coins: a container of descending coin denominations
:return: the number of different ways to break amount into coins
"""
this_coin = coins[0]
# If this is the only coin, there's one way to break it.
if len(coins) == 1:
@dblume
dblume / gist:f1356788354e4fe684d0
Created May 13, 2015 19:37
Username squatting at onename.com
Verifying I am +dblume on my passcard. https://onename.com/dblume