▲ | bjoli 2 days ago | |||||||||||||
I remember writing it in high school end ending up using a wheel (circular data structure) to avoid any modulo at all. Then my HS teacher said that it should be extensible so I wrote a wheel generator. Despite writing things in scheme I ended up being the fastest. It is no magic bullet, but if you only want the regular fizz buzz it is a simple way to just about double the speed. | ||||||||||||||
▲ | setr 2 days ago | parent [-] | |||||||||||||
Isn't a circular array implemented with a modula to begin with? I don’t see how you bypass it | ||||||||||||||
|