3 ms·
Writing a fizzbuzz without modulo or division operators (and if-statements for that matter) isn't terribly hard when you use the fact that the fizzbuzz pattern
by ginko 13y ago
Writing a fizzbuzz without modulo or division operators (and if-statements for that matter) isn't terribly hard when you use the fact that the fizzbuzz pattern repeats every 15 items.
https://gist.github.com/ginkgo/7201708 https://gist.github.com/ginkgo/7201708
- jonsen 13y agoAlso using ++ only: https://news.ycombinator.com/item?id=1383978 https://news.ycombinator.com/item?id=1383978