r/badcode • • 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

Post image
1.2k Upvotes

80 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 30 '21

[deleted] — view deleted comment

0

u/WinstonCaeser Jul 30 '21 edited Jul 30 '21

When you don't understand complexity theory enough to know that Big Omega is a lower bound, where Big O is an upper bound, therefore anything's Big O is at least its Big Omega... Oof.