Khan.randRange(6, 12) quicksortPivotPRO.initJSAV(arrSize)

Highlight the pivot element for Quicksort in the array displayed below.The left pointer is at index 0 and the right pointer is at index arrSize - 1

[quicksortPivotPRO.selIndex !== -1]
if (!guess[0]) { return ""; // User did not click, and correct answer is not // initial array state } else { return quicksortPivotPRO.checkAnswer(arrSize); }

The pivot element is at the center of the array.

Round down when you compute the position for the center.