Skip to content

Instantly share code, notes, and snippets.

@natritmeyer
Created August 21, 2013 11:33
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 natritmeyer/6293382 to your computer and use it in GitHub Desktop.
Save natritmeyer/6293382 to your computer and use it in GitHub Desktop.
Shortest ruby fizzbuzz solution... maybe...
p (1..100).map{|i|o="";o<<"Fizz" if i%3==0;o<<"Buzz" if i%5==0;o<<i.to_s if o=="";o}
#84 chars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment