From c87ed2003783d129419956856c9409b0a53ee933 Mon Sep 17 00:00:00 2001
From: "paul.albuquer" <paul.albuquerque@hesge.ch>
Date: Wed, 10 Nov 2021 17:21:08 +0100
Subject: [PATCH] changed 2 to 1 in 'if' pseudocode quicksort

---
 slides/cours_7.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slides/cours_7.md b/slides/cours_7.md
index 1a709b5..016c214 100644
--- a/slides/cours_7.md
+++ b/slides/cours_7.md
@@ -140,7 +140,7 @@ int low, high; // les indices min/max des tableaux à trier
 
 ```C
 void quicksort(array, low, high) {
-    if (more than 2 elems) {
+    if (more than 1 elems) {
         pivot_ind = partition(array, low, high);
         if (something left of pivot)
             quicksort(array, low, pivot_ind - 1);
-- 
GitLab