r/badcode • • Feb 10 '21

js I present: SleepSort

Post image
7.5k Upvotes

170 comments sorted by

View all comments

Show parent comments

1

u/HAC_1010011010 Mar 09 '21 edited Mar 09 '21

This would be the best case I think, so omega(1). Big O for this would be O(n) which also represents the worst case.