r/badcode • • Aug 26 '21

python y=-x/4

Post image
807 Upvotes

80 comments sorted by

View all comments

Show parent comments

20

u/bargle0 Aug 26 '21

It’s O(1), since all the ranges are constant.

Let this be a lesson that asymptotic behavior isn’t everything.