A little issues

Well,I think,maybe we should use '<' instead in line 26 as your code situation...
This commit is contained in:
lianer 2019-07-03 21:13:24 +08:00 committed by GitHub
parent 1e8a82ebef
commit 9cc8cd42b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ function partition(arr, start, end) {
let i = start;
let pivot = arr[end];
for (let j = start; j < end; j++) {
if (arr[j] > pivot) {
if (arr[j] < pivot) {
swap(arr, i, j);
i += 1;
}