Hacker News new | past | comments | ask | show | jobs | submit login

I've seen:

1) Incorrect ordering of output "Buzz Fizz"

2) Printing only Fizz or Buzz for 15.

3) Starting at a number different to 1 (say 0)

4) Off by one error at the end (going to 99, instead of 100)

5) Forgetting to print out the number when neither Fizz nor Buzz is output (first output is Fizz for 3)

6) Always printing out the number. (3 Fizz)

and that's the people who can code at all.

Then you get people who can't code, and can't even produce a for loop.

Oh and extra points for arguing about the solution being correct, particularly after prompting that there is a bug "Is it correctly dealing with 15?" is a pretty huge hint that there's a bug.




Fantastic list of mistakes!

It made realize that I've made all of these mistakes on tasks similar in complexity of Fizzbuzz. I write a lot of scripts in different languages some of them quite domain specific.

Why do I make mistakes? Most of time the mistakes stem from the fact that I do not have to get it right the first time and I may have misread the specifications. As Hemingway said: "The first draft of anything is always shit"

So take 1000 applicants who can code but are in a stressful situation and I would not be shocked that there would be 50 mistakes on something so seemingly trivial.


I don't think mistakes or a lack of them in FizzBuzz are that relevant at all. You are not supposed find a clever solution as a candidate, or as the interviewer to spend more than a minute reviewing or discussing it.

The FizzBuzz test exists to quickly filter out candidates who really cannot code at all, despite what they say in their CV, what jobs they have done in the past, or what courses they have passed.

If you can show that yes, you understand what for loops and if statements are, and can write 10 lines of code roughly correctly, the test is passed and the interview can continue with more interesting questions.

If no, then it saves everyone time to just cancel the interview.


Wow! Thanks, that's illustrative.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: