r/badcode • u/zshadowjon • Jul 29 '21
python Was doing some bug hunting and found essentially what was a sum to n function but of O(fuck) time complexity
1.2k
Upvotes
r/badcode • u/zshadowjon • Jul 29 '21
View all comments
Show parent comment
0
u/WinstonCaeser Jul 30 '21
I keep saying digits, not saying the base. No matter what base you represent it in the size scales with the number. Be it base 2(binary) or base 264.