Just curious, has anyone ever had a candidate actually fail FizzBuzz in front of them? I think the original statement was something like 90% of candidates can't do it. In my experience, every single candidate I have ever given that question succeeds. When I am asked FizzBuzz on an interview, I am actually insulted.
boring_twenties|4 years ago
After a few disappointing responses to better questions, interviewer decides to give a "freebie" and asks for a function that determines whether an integer is odd or even.
Candidate produces something that loops from 0 to the provided integer, incrementing two separate counters, then comparing them at the end.
Interviewer manages to stammer out something like "are you sure there isn't a more efficient way to solve this?"
Guy furrows his brow for a few minutes more, then a light bulb of sorts goes on, and he declares "Of course! ..."
"... I only need one counter!"
Apocryphon|4 years ago
isbvhodnvemrwvn|4 years ago