Content
M " 1 31 0 4:48 dis.4chan.orgreadprog129554 Return Entire Thread First 100 Posts Prev 100 Next 100 Last 50 Posts Report Thread Stule: Yotsuba. PseudOch. Terminal Pages: 1-40 41-80 81-120 121-160 161-200 201-240 241-280 281-320 321-360 361-400 401-440 441-480 481-520 521-560 561-600 601-640 641-680 681-720 721-760 761-800 801-840 841-880 881-920 921-960 961-1000 1001-1040 1041- Genius sorting algorithm: Sleep sort 1 Name: Anonymous 2011-01-20 12:22 Man, am I a genius. Check out this sorting algorithm I just invented. !binbash function f() sleep "1" echo "1" do while -n "1" f "1" shift done wait example usage: .sleepsort.bash 5 3 6 3 6 3 1 4 7 2 Name: Anonvmous 2011-01-20 12:27 1 Oh god, it works. But I don’t like to wait 218382 seconds to sort ‘(0 218382) 3 Name: Anonvmous 2011-01-20 12:31 2 yes the worst case is very big 4 Name: Anonvmous 2011-01-20 12:45