From: seebs@... (Peter Seebach) Date: 2007-06-01T22:33:53+09:00 Subject: Re: [QUIZ] FizzBuzz (#126) In message <20070601122814.XMOR28308.eastrmmtao105.cox.net@eastrmimpo02.cox.net>, Ruby Quiz wri tes: >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. For extra fun, try to do it so the core loop is: (1..100).each { |x| p x } -s