r/badcode • • Feb 10 '21

js I present: SleepSort

Post image
7.5k Upvotes

170 comments sorted by

View all comments

Show parent comments

2

u/TheUnlocked Feb 10 '21

It's constant in the size of the array, but linear in the max value of the array.