Sorting algorithms/Strand sort: Difference between revisions

m
(→‎{{header|D}}: This algorithm really needs a doubly-linked list, but I didn't have one before)
Line 137:
 
void main() {
auto arrlst = DList!int([-2,0,-2,5,5,3,-1,-3,5,5,0,2,-4,4,2]);
foreach(e; strandSort(arrlst))
writef("%d ", e);
}</lang>
Anonymous user