Hacker News new | ask | show | jobs
by lnanek2 4311 days ago
> The famous fizzbuzz test simply asks "are you aware of the modulo operator?

No it doesn't. It could be implemented with counters you reset when needed. Didn't really read any further, I don't think this person should really be giving technical interviews anyway.

1 comments

Yeah, but not knowing the mod operator would get you dinged.
I thought the point of the FizzBuzz was that the asker doesn't care about 'clever' (for some definition of clever) answers, but rather, "Can this person actually write something which solves the problem, no matter how brain dead a solution"
Only if you have no workaround or ability to implement modulo operations. If you were really a capable coder, but didn't know of %, you would just say, "I don't know of a library function for finding the remainder, so I'll just plug in remainder(x, 3) here." Then later, if such completeness is desired, implement that function.