Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/algorithms/sorting/quick-sort/QuickSortInPlace.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -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){
Expand Down