Re:Can you beat 99% of programmers? Try the FizzBuzz challenge
by cheald on Wednesday December 14, 2011 @07:13PM
(#3354386)
The fun thing about these sorts of tests if in figuring out how to do it a little bit differently. For example, I wanted to see if I could do it with a true one-liner (ie, no semicolons) with piecewise construction (ie, no nested ternaries). Here's my solution.
(Yes, it's ugly. But it works!)