Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e271ad

Browse files
Fix typo
1 parent 8990522 commit 6e271ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎sorting-algorithms-in-javascript/quicksort-counters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function partitionLomuto(array, left, right) {
8181
countInner++;
8282
if(array[j] <= array[pivot]) {
8383
countSwap++;
84-
swap(array, i, j);
84+
swap(array, i, j);
8585
i = i + 1;
8686
}
8787
}

‎sorting-algorithms-in-javascript/quicksort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function partitionLomuto(array, left, right) {
5454

5555
for(var j = left; j < right; j++) {
5656
if(array[j] <= array[pivot]) {
57-
swap(array, i, j);
57+
swap(array, i, j);
5858
i = i + 1;
5959
}
6060
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /