3 ms·
I'm not a programmer just a pedant ... can't you just concatenate two integers one as your bigend and one as your little end. Sure, probably not fast, but slow
by pbhjpbhj 4y ago
I'm not a programmer just a pedant ... can't you just concatenate two integers one as your bigend and one as your little end. Sure, probably not fast, but slow !== impossible.
- city41 4y agoThat's pretty much what BigInt is doing for you.
- TJSomething 4y agoThe thing that was said to be impossible was writing a fast FizzBuzz. Assuming that your reference is C, it kind of is.
- pbhjpbhj 4y agoThis has piqued my interest, I'm slightly familiar with C and Python, do you (or does anyone) know of any sort of review of resource optimisation for a simple program (like fizzbuzz)? To me, naively, it seems like the bigend would fit in a register and so memory use wouldn't increase noticeably if you used some sort of double integer type. So it's it processor bound?
- shepherdjerred 4y agohttps://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz https://codegolf.stackexchange.com/questions/215216/high-thr...