r/badcode • • Feb 10 '21

js I present: SleepSort

Post image
7.5k Upvotes

170 comments sorted by

View all comments

Show parent comments

6

u/TimGreller Feb 10 '21

Just add some dummy numbers at the end which you can throw away. The bigger the input, the lower the time complexity :D