News for hackers. Stuff that matters.
Re:Can you beat 99% of programmers? Try the FizzBuzz challenge by Kafka on Monday December 19, 2011 @06:27PM (#3371559)
1.upto(100){|n|puts [["Fizz"][n%3],["Buzz"][n%5]].inject{|m,e|m=m.nil? ? e:m+=e||""}||n}

There are no comments on this comment yet.