Skip to content

Commit 6e271ad

Browse files
committedMar 27, 2016
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

+1-1
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

+1-1
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)
Please sign in to comment.