We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ab965b commit b87e326Copy full SHA for b87e326
src/algorithms/sorting/quick-sort/QuickSortInPlace.js
@@ -46,7 +46,7 @@ export default class QuickSortInPlace extends Sort {
46
47
const pivot = array[highIndex];
48
// visitingCallback is used for time-complexity analysis.
49
- this.callbacks.visitingCallback(array[pivot]);
+ this.callbacks.visitingCallback(pivot);
50
51
let partitionIndex = lowIndex;
52
for (let currentIndex = lowIndex; currentIndex < highIndex; currentIndex += 1) {
0 commit comments