Created
August 21, 2013 11:33
-
-
Save natritmeyer/6293382 to your computer and use it in GitHub Desktop.
Shortest ruby fizzbuzz solution... maybe...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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