The coolest algorithm is IMHO sleepsort
sleepsort
#!/bin/bash function f() { sleep "$1" echo "$1" } while [ -n "$1" ] do f "$1" & shift done wait # example usage: # ./sleepsort.bash 5 3 6 3 6 3 1 4 7
Yep, it's pretty nice. It was one of my first post on codl.dev
Post N°21
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The coolest algorithm is IMHO
sleepsort
Yep, it's pretty nice.
It was one of my first post on codl.dev
Post N°21