Fix performance measuring code bug (#313)

This commit is contained in:
haalogen 2019-03-08 14:08:18 +03:00 committed by Oleksii Trekhleb
parent 8ab965b483
commit b87e326fcf

View File

@ -46,7 +46,7 @@ export default class QuickSortInPlace extends Sort {
const pivot = array[highIndex];
// visitingCallback is used for time-complexity analysis.
this.callbacks.visitingCallback(array[pivot]);
this.callbacks.visitingCallback(pivot);
let partitionIndex = lowIndex;
for (let currentIndex = lowIndex; currentIndex < highIndex; currentIndex += 1) {