Skip to content

Instantly share code, notes, and snippets.

@natritmeyer
Created August 21, 2013 11:33
Show Gist options
  • 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