Skip to content

Commit f7f83ce

Browse files
Merge pull request #352 from llianer/patch-1
A little problem
2 parents cba395a + 9cc8cd4 commit f7f83ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/12_sorts/KthNum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function partition(arr, start, end) {
2323
let i = start;
2424
let pivot = arr[end];
2525
for (let j = start; j < end; j++) {
26-
if (arr[j] > pivot) {
26+
if (arr[j] < pivot) {
2727
swap(arr, i, j);
2828
i += 1;
2929
}

0 commit comments

Comments
 (0)