Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b87e326

Browse files
haalogentrekhleb
authored andcommittedMar 8, 2019
Fix performance measuring code bug (trekhleb#313)
1 parent 8ab965b commit b87e326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/algorithms/sorting/quick-sort/QuickSortInPlace.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class QuickSortInPlace extends Sort {
4646

4747
const pivot = array[highIndex];
4848
// visitingCallback is used for time-complexity analysis.
49-
this.callbacks.visitingCallback(array[pivot]);
49+
this.callbacks.visitingCallback(pivot);
5050

5151
let partitionIndex = lowIndex;
5252
for (let currentIndex = lowIndex; currentIndex < highIndex; currentIndex += 1) {

0 commit comments

Comments
 (0)
Please sign in to comment.