suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI
This commit is contained in:
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-19/25-NSI-19.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-19/25-NSI-19.pdf
Normal file
Binary file not shown.
14
Sujet_bac/Pratique/BNS_2025/25-NSI-19/sujet-19.py
Normal file
14
Sujet_bac/Pratique/BNS_2025/25-NSI-19/sujet-19.py
Normal file
@@ -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