4 ms·
There are plenty of ways to write fizzbuzz without the modulus operator, although it is the most obvious way. But you can also combine infinite streams, or keep
by Thiez 9y ago
There are plenty of ways to write fizzbuzz without the modulus operator, although it is the most obvious way. But you can also combine infinite streams, or keep track of the index of the next "fizz" and "buzz" with simple addition...
- exodust 9y agoPerhaps there are plenty of ways, but finding the remainder of the division is what's needed and in my case the test was pen and paper, with just a small space for the answer and no way to test my code. It's all good, it wasn't the role for me, I'm more creative dev than programmer and I didn't get a good impression of the company anyway. I've moved on.