Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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