From 2448c0be26b874c7c2b9fcd136d207da31b3e807 Mon Sep 17 00:00:00 2001 From: Florian Mathieu Date: Tue, 19 Mar 2024 08:38:15 +0100 Subject: [PATCH] correction boucle for --- algorithmes/TRIS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithmes/TRIS.md b/algorithmes/TRIS.md index 42506c8..ee08bee 100644 --- a/algorithmes/TRIS.md +++ b/algorithmes/TRIS.md @@ -138,9 +138,9 @@ tab = [9,8,5,4,7,6] ```python procédure tri_selection(tableau t) n ← longueur(t) - pour i de 0 à n - 2 + pour i de 0 à n - 1 min ← i - pour j de i + 1 à n - 1 + pour j de i + 1 à n si t[j] < t[min], alors min ← j fin pour si min ≠ i, alors échanger t[i] et t[min]