Sorting algorithms/Insertion sort: Difference between revisions
Content added Content deleted
Simple9371 (talk | contribs) m (Added a comment) |
Simple9371 (talk | contribs) m (Minor edit...) |
||
Line 249:
set output=
for /l %%x in (0,1,%range%) do (if !last! equ %%x (
set "output=!output!^
) else (
set "output=!output! !num%%x!"
Line 291:
Sorting:
>> -1 0
>> -1 0 5
>> -1 0 2 5
>> -1 0 2 5 7
>> -1 0 2 4 5 7
>> -1 0 2 3 4 5 7
>> -1 0 2 3 4 5 6 7
>> -1 -1 0 2 3 4 5 6 7
>> -1 -1 0 2 3 4 5 6 7 7
>> -1 -1 0 2 2 3 4 5 6 7 7
>> -1 -1 0 1 2 2 3 4 5 6 7 7
>> -2 -1 -1 0 1 2 2 3 4 5 6 7 7
>> -2 -1 -1 0 1 2 2 3 4 5 6 7 7 8
DONE!</pre>
|