The algorithm that sorts numbers by letting them sleep
Why do math when you can just take a nap? This unhinged algorithm sorts numbers by assigning each one a sleeper thread that pauses for that number of seconds, meaning larger numbers simply 'wake up' and print themselves last.

Keep exploring facts in this topic.
Technology →




