From 3d88f3f97876a72a2a91848326213ba4e5677eb3 Mon Sep 17 00:00:00 2001 From: Tal Date: Fri, 18 Jul 2025 09:46:43 +0300 Subject: [PATCH] Update quick_sort.py --- examples/quick_sort/quick_sort.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/quick_sort/quick_sort.py b/examples/quick_sort/quick_sort.py index e2763da..0089206 100644 --- a/examples/quick_sort/quick_sort.py +++ b/examples/quick_sort/quick_sort.py @@ -1,5 +1,8 @@ def qsort(lst): - if len(lst) < 2: + """ + sorting algo, with a bug + """ + if len(lst) < 3: return lst first_item = lst[0]