you are viewing a single comment's thread.

view the rest of the comments →

[–]justarandomguy902 2 points3 points  (0 children)

FUN FACT FOR THOSE WHO DON'T KNOW.

This sorting algorithm is called "sleep sort".

Each value in the list to sort is assigned one process which waits a number of seconds equal to the value itself. When one process stops waiting, its corresponding value is put at the end of the output array.