Ask HN: What is your favourite algorithm? 13 years ago
Sleepsort of course
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}while [ -n "$1" ]
do
f "$1" &
shift
donewait
HN user
Hi
Sleepsort of course
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}while [ -n "$1" ]
do
f "$1" &
shift
donewait
Once BitTorrent Sync releases their web API, I'll see what I can do
If anybody has suggestions for site please contact me!