Add 'divise2' function that divide liste in two parts

This commit is contained in:
2025-02-11 08:39:44 +01:00
parent 872db0d29a
commit 3ff17e1dcb

View File

@@ -17,6 +17,12 @@ def taille(liste):
a+=1
return a
def divise2(liste):
n = taille(liste)
droite, gauche = partition(liste,0,n//2)
return droite,gauche
def renverser(liste):
result = fifo.creer_liste()