Personal tools

Haskell Quiz/FizzBuzz

From HaskellWiki

< Haskell Quiz(Difference between revisions)
Jump to: navigation, search
m (Added separate page for my solution, following convention)
(Solutions)
 
(One intermediate revision by one user not shown)
Line 17: Line 17:
 
* [[Haskell Quiz/FizzBuzz/Solution Ninju|Alex Watt]]
 
* [[Haskell Quiz/FizzBuzz/Solution Ninju|Alex Watt]]
 
* [[Haskell Quiz/FizzBuzz/Solution Syzygies|Dave Bayer]]
 
* [[Haskell Quiz/FizzBuzz/Solution Syzygies|Dave Bayer]]
  +
* [[Haskell Quiz/FizzBuzz/Solution Mikbe|Mike Bethany]]
  +
* [[Haskell Quiz/FizzBuzz/Solution Acontorer|Aaron Contorer]]
   
 
[[Category:Haskell Quiz|FizzBuzz]]
 
[[Category:Haskell Quiz|FizzBuzz]]

Latest revision as of 22:19, 7 October 2012

"There has been some debate on the proper ways to screen programmers you intend to hire. A common theory is that you really need to have the programmer write some code for you to accurately gauge their skill. Exactly what to have them write is another debate, but the blogosphere has recently been abuzz with this question as a screener:

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.

Pretend you've just walked into a job interview and been hit with this question. Solve it as you would under such circumstances for this week's Ruby Quiz."

[edit] 1 The problem

[edit] 2 Solutions