2 ms·
FizzBuzz seems to get a lot of people simply because they aren't familiar with the remainder (Modulo) operator. I have to admit that I myself rarely need to us
by UnoriginalGuy 14y ago
FizzBuzz seems to get a lot of people simply because they aren't familiar with the remainder (Modulo) operator.
I have to admit that I myself rarely need to use it. When I first read about FizzBuzz I tried to solve it by division and then comparing the floating point result to a rounded int result (i.e. circular way to get the remainder).
I'd be interested to see how many people pass if you simply remove the remainder operator part of it entirely. My guess is that near 100%.
FizzBuzz is still less "unfair" than a lot of the trick programming questions, riddles, or random CompSci trivia that many companies (Google, Microsoft, etc) do.
This is one of the reasons I would never even apply at a Google. I don't perform well programming wise under that level of pressure and my "random trivia" reserves are low.
- jstelly 14y agoIt really depends on the type of programming job you are interviewing for, but for all of the jobs I've had I'd expect a candidate to be able to do this with or without using a mod operator. I've asked people similarly simple programming problems; I like the approach. I don't like requiring leaps of intuition or analysis as a filter like this though. So problems should be straightforward. You are checking for fundamental coding and problem solving in an interview like this.