We did a fizzbuzz interview with a candidate. He passed but I had a weird feeling about it so we asked him to do another one with 7 and 21 and he couldn’t do it even with his old code right there
Damn, dude managed to literally memorize code without having any idea of what was going on. Meanwhile, I’d spend most of my time trying to figure whether it’s div or mod that i’m supposed to use to check for the remainder of a division, I always forget which is which
It’s slightly different because all numbers divisible by 21 are also divisible by 7, so you would get all Fizz and FizzBuzz but no Buzz. So the question is, should you even be checking for Buzz, or should you make your code more efficient by eliminating those lines?
We did a fizzbuzz interview with a candidate. He passed but I had a weird feeling about it so we asked him to do another one with 7 and 21 and he couldn’t do it even with his old code right there
Damn, dude managed to literally memorize code without having any idea of what was going on. Meanwhile, I’d spend most of my time trying to figure whether it’s div or mod that i’m supposed to use to check for the remainder of a division, I always forget which is which
It’s slightly different because all numbers divisible by 21 are also divisible by 7, so you would get all Fizz and FizzBuzz but no Buzz. So the question is, should you even be checking for Buzz, or should you make your code more efficient by eliminating those lines?
I think they meant 3/7/21 instead of the standard 3/5/15.
Omg!