6 ms·
Awesome but seem to fail on some numbers e.g. https://api.isfizzbuzz.xyz/api/150000000000000000000000000000000000000000000000000000000000 https://api.isfizzbuz
by plingbang 2y ago
Awesome but seem to fail on some numbers e.g.
https://api.isfizzbuzz.xyz/api/150000000000000000000000000000000000000000000000000000000000 https://api.isfizzbuzz.xyz/api/15000000000000000000000000000...
BTW, there are neat divisibility rules which can give you the answer in practically linear time when the number is in decimal: https://en.wikipedia.org/wiki/Divisibility_rule https://en.wikipedia.org/wiki/Divisibility_rule
- bliteral 2y agoClever! I found another simple alternative though.