3 ms·
I got fizzbuzzed in an interview recently. I knew exactly what to do, came out with it in a simple way in python. Then "how about without the modulo operator".
by collyw 11y ago
I got fizzbuzzed in an interview recently. I knew exactly what to do, came out with it in a simple way in python.
Then "how about without the modulo operator". The solution is so obvious - using the modulo operator, I had a mental block. It was fine once I got nudged in the right direction, but under normal circumstances I wouldn't have needed the nudge.