zoi (09:28:10) for each element you just add a timeout for the value, with the value as parameter, which adds itself to an empty array when the timer is done
mirrorbird (09:28:05) yeah i saw that one somewhere (hackernews?)
Agemixer (09:28:01) Sorts of sorts...
zoi (09:27:43) it's called sleepsort
zoi (09:27:39) one of the more inventive ones I've seen is for async javascript
zoi (09:27:00) yeah, miracle sort is an optimised version of bogosort
zoi (09:26:34) when it works it runs in O(1) time
mirrorbird (09:26:30) lol i see
mirrorbird (09:26:23) ah? i remember the 'bogo-sort' (randomly shuffle, check if it's sorted yet, repeat)
zoi (09:26:17) implementation goes like while(!sorted) { }
Time Left: 5:31
Related tags: