Sorting algorithms/Insertion sort: Difference between revisions

Content added Content deleted
Line 1,612: Line 1,612:
insSort(i) = x
insSort(i) = x
sortEnd = sortEnd + 1
sortEnd = sortEnd + 1
end function</lang><pre></pre>
end function</lang>
<pre>End Sort:20
1 124
2 248
3 263
4 279
5 390
6 431
7 458
8 480
9 543
10 556
11 567
12 619
13 625
........</pre>


=={{header|Scala}}==
=={{header|Scala}}==