5 ms·
tangentially, can somebody point me to what are considered the best fizzbuzz solutions? I'm both an experienced and cs-educated coder, and I know what I would c
by fsckboy 4y ago
tangentially, can somebody point me to what are considered the best fizzbuzz solutions? I'm both an experienced and cs-educated coder, and I know what I would consider to be a good solution, but I have no idea what the rest of "you" are looking for. (my favored solution would be a small number of state machines running in parallel to sieve-of-eratosthenes the correct answers thus avoid innumerable divisions, but maybe that's just me and I'm old fashioned?)
- anonymoushn 4y agoSurely your compiler won't actually emit an integer modulus if you tell it to mod by a constant?
- _kst_ 4y agoI don't claim to have the best, or even good, fizzbuzz implementations, but if you're looking for a lot of fizzbuzz implementations: https://github.com/Keith-S-Thompson/fizzbuzz-c https://github.com/Keith-S-Thompson/fizzbuzz-c https://github.com/Keith-S-Thompson/fizzbuzz-polyglot https://github.com/Keith-S-Thompson/fizzbuzz-polyglot