Utilisation fonction de comparaison
This commit is contained in:
parent
60db55841f
commit
b9fc8f34d9
|
@ -94,7 +94,7 @@ def tri_insertion_base(l, n):
|
|||
aux = l[n]
|
||||
|
||||
k=n
|
||||
while k >= 1 and l[k-1] > aux:
|
||||
while k >= 1 and comp(l[k-1], aux)== 1:
|
||||
l[k] = l[k-1]
|
||||
k -= 1
|
||||
|
||||
|
|
Reference in a new issue