Skip to content

Instantly share code, notes, and snippets.

@jyothu
Created April 1, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jyothu/b8ddd1940a2c227b53dc39446f7a3754 to your computer and use it in GitHub Desktop.
Save jyothu/b8ddd1940a2c227b53dc39446f7a3754 to your computer and use it in GitHub Desktop.
# Given an amount like 57 cents
# return how many of each denomination needed to make that total
# these are the denominations:
# 1 cent, 5 cent, 10 cent, 25 cent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment