News for hackers. Stuff that matters.
Re:Fizzbuzz, Interviews, And Overthinking by Gazler on Thursday October 04, 2012 @05:14PM (#4614431)
My goto ruby solution looks something like:

(1..100).map{|i|(f=[["Fizz"][i%3],["Buzz"][i%5]].join).empty? ? i:f}

There are no comments on this comment yet.