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-47/25-NSI-47.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-47/25-NSI-47.pdf
Normal file
Binary file not shown.
18
Sujet_bac/Pratique/BNS_2025/25-NSI-47/25-NSI-47.py
Normal file
18
Sujet_bac/Pratique/BNS_2025/25-NSI-47/25-NSI-47.py
Normal file
@@ -0,0 +1,18 @@
|
||||
def echange(tab, i, j):
|
||||
'''Echange les éléments d'indice i et j dans le tableau tab.'''
|
||||
temp = ...
|
||||
tab[i] = ...
|
||||
tab[j] = ...
|
||||
|
||||
def tri_selection(tab):
|
||||
'''Trie le tableau tab dans l'ordre croissant
|
||||
par la méthode du tri par sélection.'''
|
||||
N = len(tab)
|
||||
for k in range(...):
|
||||
imin = ...
|
||||
for i in range(..., N):
|
||||
if tab[i] < ...:
|
||||
imin = i
|
||||
echange(tab, ..., ...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user