Sorting algorithms/Sleep sort: Difference between revisions

Content added Content deleted
(Add Julia)
Line 681: Line 681:
</pre>
</pre>


=={{header|Julia}}==
=={{header|Matlab}}==
<lang Julia>input = [3,2,4,7,3,6,9,1]
<lang Julia>input = [3,2,4,7,3,6,9,1]
output = Int[]
output = Int[]
Line 696: Line 696:
{{out}}
{{out}}
<pre>[1,2,3,3,4,6,7,9]</pre>
<pre>[1,2,3,3,4,6,7,9]</pre>

=={{header|Lua}}==
=={{header|Lua}}==
Here's a slow implementation using only stock C Lua:
Here's a slow implementation using only stock C Lua: