From aa3dafae95a4f0fd879108f388d161747c4b4921 Mon Sep 17 00:00:00 2001 From: Soochak S Kotyan Date: Wed, 6 Dec 2023 16:50:33 +0000 Subject: [PATCH] first commit --- Sorting Algorithms/quick_sort.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Sorting Algorithms/quick_sort.py b/Sorting Algorithms/quick_sort.py index 9731a8ee..2f1228b3 100644 --- a/Sorting Algorithms/quick_sort.py +++ b/Sorting Algorithms/quick_sort.py @@ -5,6 +5,7 @@ def quick_sort(A): quick_sort2(A, 0, len(A)-1) def quick_sort2(A, low, hi): + threshold = 0 if hi-low < threshold and low < hi: quick_selection(A, low, hi) elif low < hi: