PEP-huître
This commit is contained in:
parent
e398faa3dc
commit
5a63207ef6
|
@ -82,6 +82,7 @@ def tri_selection(l):
|
|||
imin = select_min(l, i, n - 1)
|
||||
l[i], l[imin] = l[imin], l[i]
|
||||
|
||||
|
||||
def tri_insertion_base(l, n):
|
||||
"""
|
||||
list, int → ∅
|
||||
|
@ -100,6 +101,7 @@ def tri_insertion_base(l, n):
|
|||
|
||||
l[k] = aux
|
||||
|
||||
|
||||
def tri_insertion(l):
|
||||
for i in range(1, len(l)):
|
||||
tri_insertion_base(l, i)
|
||||
|
|
Reference in a new issue