Skip to content

Commit aa3dafa

Browse files
committed
first commit
1 parent fa2904f commit aa3dafa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sorting Algorithms/quick_sort.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ def quick_sort(A):
55
quick_sort2(A, 0, len(A)-1)
66

77
def quick_sort2(A, low, hi):
8+
threshold = 0
89
if hi-low < threshold and low < hi:
910
quick_selection(A, low, hi)
1011
elif low < hi:

0 commit comments

Comments
 (0)