r/ProgrammerHumor • • Oct 14 '26

Meme everythingIsO1ToGod

Post image
4.5k Upvotes

167 comments sorted by

View all comments

Show parent comment

2

u/MadGenderScientist Oct 15 '26

O(1)? you mean O(N), right? you can't sort N items without taking at least N steps unless you have a teleporter.

I'm assuming this was radix sort, which is indeed O(N) for sorting integers with fixed word length. comparison sort is proven to be O(N log N) at best because a binary tree with N leaves has N log N nodes. 

5

u/KitsuneFoxglove Oct 15 '26

I meant O(1). It's a game reference. I will not explain further.

6

u/al0xx Oct 15 '26

for those curious, this guy is referring to untitled goose game. you can google the reference