Skip to content

Instantly share code, notes, and snippets.

Created March 4, 2013 18:30
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 anonymous/5084303 to your computer and use it in GitHub Desktop.
Save anonymous/5084303 to your computer and use it in GitHub Desktop.
int getCoins(int n) {
return (n==0 ? 1 : getCoins(n/2)+getCoins(n/3)+getCoins(n/4)); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment