Skip to content

Commit 40b4779

Browse files
committed
Merge branch 'master' of github.com:coderbruis/AlgorithmsInJava
2 parents 59e091b + cdae2b9 commit 40b4779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes/algorithms/快速排序算法.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public class QuickSort2Ways {
193193
while(i <= right && arr[i] < p) {
194194
i++;
195195
}
196-
while(j >= 0 && arr[j] > p) {
196+
while(j >= left + 1 && arr[j] > p) {
197197
j--;
198198
}
199199

0 commit comments

Comments
 (0)