Sunday, February 27, 2011

Filtering Out Bad Developers

How do you filter out the poor developers in an interview. Imran suggests a simple "FizzBuzz" logic question.
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”.
Another simple question (from the comments in the post):
Show me (on paper) how you would swap the values of two variables.

Head over here for the full post. Also, check out the great comments on the post.

No comments: