Sorting algorithms/Insertion sort: Difference between revisions
Content added Content deleted
m (→Icon and Unicon: header simplification) |
|||
Line 912:
l[j+1] = key</lang>
===Insertion sort with binary search===
<lang python>
def insertion_sort_bin(seq):
for i in range(1, len(seq)):
=={{header|R}}==
Direct translation of pseudocode.
|