update meta data
This commit is contained in:
parent
f3a896c724
commit
90e15ed6ce
3307 changed files with 1674 additions and 7 deletions
6
Task/Sorting-algorithms-Sleep-sort/00DESCRIPTION
Normal file
6
Task/Sorting-algorithms-Sleep-sort/00DESCRIPTION
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{Sorting Algorithm}}
|
||||
In general, sleep sort works by starting a separate task for each item to be sorted, where each task sleeps for an interval corresponding to the item's sort key, then emits the item. Items are then collected sequentially in time.
|
||||
|
||||
Task: Write a program that implements sleep sort. Have it accept non-negative integers on the command line and print the integers in sorted order. If this is not idomatic in your language or environment, input and output may be done differently. Enhancements for optimization, generalization, practicality, robustness, and so on are not required.
|
||||
|
||||
Sleep sort was [http://dis.4chan.org/read/prog/1295544154 presented] anonymously on 4chan and has been [http://news.ycombinator.com/item?id=2657277 discussed] on Hacker News.
|
||||
Loading…
Add table
Add a link
Reference in a new issue