stackyFACTS
Technology

The algorithm that sorts numbers by letting them sleep

HERE’S THE INTERESTING PART

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.

The algorithm that sorts numbers by letting them sleep
STACKY / Technology
One discovery leads to another.

Keep exploring facts in this topic.

Technology →
STACKY FOR IPHONE

A bigger world.
One discovery
at a time.

Keep discovering with Stacky. Interesting facts in an app that is always within reach.

Download on the App Store
ONE MORE DISCOVERY?

Keep exploring

All in this topic →
Why every social media feed starts to look the same
Technology

Why every social media feed starts to look the same

Platform algorithms have officially abandoned chronological social updates in favor of engagement-driven recommendations. Because all platforms copy the same…

Discover more
Your video feed is shaping what you want
Technology

Your video feed is shaping what you want

Hit play on one video, and suddenly a digital guide ushers you to the next, and the next. It feels like serendipity—until you realize there’s a puppet master.…

Discover more
What controversial matchmaking formula did popular dating apps originally borrow directly from competitive chess?
Technology

What controversial matchmaking formula did popular dating apps originally borrow directly from competitive chess?

What controversial matchmaking formula did popular dating apps originally borrow directly from competitive chess?

Discover more
The sorting algorithm that just keeps shuffling
Technology

The sorting algorithm that just keeps shuffling

Why use intelligence when you can use pure, unadulterated chaos? Bogosort is an intentionally terrible sorting algorithm that checks if a list of numbers is…

Discover more
Computer algorithms are technically named after Muhammad ibn Musa al-Khwarizmi, a brilliant ninth-century Persian mathematician whose groundbreaking work fundamentally established the foundation of modern algebra.
Technology

Computer algorithms are technically named after Muhammad ibn Musa al-Khwarizmi, a brilliant ninth-century Persian mathematician whose groundbreaking work fundamentally established the foundation of modern algebra.

Computer algorithms are technically named after Muhammad ibn Musa al-Khwarizmi, a brilliant ninth-century Persian mathematician whose groundbreaking work…

Discover more
Why every popular app seems to get worse
Technology

Why every popular app seems to get worse

It starts with an amazing free service, shifts to trapping locked-in users, and ends by squeezing every drop of value for advertisers. Coined by tech critics,…

Discover more
StackyMore discoveries in the app
Download on the App Store