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: