suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI

This commit is contained in:
2026-03-25 21:13:05 +01:00
parent 0a16b5fbb3
commit c6ee9b49f4
167 changed files with 1103 additions and 158 deletions

Binary file not shown.

View File

@@ -0,0 +1,16 @@
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_bulles(tab):
'''Trie le tableau tab dans l'ordre croissant
par la méthode du tri à bulles.'''
n = len(tab)
for i in range(...):
for j in range(...):
if ... > ...:
echange(tab, j, ...)