PEP-huître

This commit is contained in:
Geoffrey Frogeye 2015-03-11 21:01:45 +01:00
parent e398faa3dc
commit 5a63207ef6

View file

@ -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)