Comment

Comment by klyrs

> Sleep sort is an O(N) sorting algorithm for non-negative integers.

No, it is not. It's O(N+M) where M is the largest value in the list. And, notably, it can fail if the time to schedule the jobs takes longer than the smallest difference between elements in the list

parent klyrs 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton