suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
def separe(tab):
|
||||
'''Separe les 0 et les 1 dans le tableau tab'''
|
||||
gauche = 0
|
||||
droite = ...
|
||||
while gauche < droite:
|
||||
if tab[gauche] == 0 :
|
||||
gauche = ...
|
||||
else :
|
||||
tab[gauche] = ...
|
||||
tab[droite] = ...
|
||||
droite = ...
|
||||
return tab
|
||||
|
||||
|
||||
Reference in New Issue
Block a user