3 ms·
I can write FizzBuzz, but otherwise I found it to be something that you usually use a rarely used operator (in my field, webdev) for. Either you: 1. Use modul
by sebazzz 7y ago
I can write FizzBuzz, but otherwise I found it to be something that you usually use a rarely used operator (in my field, webdev) for.
Either you:
1. Use modulo 2
2. Bitwise AND with 1
3. Divide as x and check if floor(x) == x
4. Swap variables
And probably there are other ways as well. I have just disproven myself I think.