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

The pivot element for quicksort is highlighted in the array below. Partition the array using quicksort.

Do not perform the final step of swapping the pivot in its final position!

[quicksortPartitPRO.userInput]
if (!quicksortPartitPRO.checkAnswer(arrSize) && !guess[0]) { return ""; // User did not click, and correct answer is not // initial array state } else { return quicksortPartitPRO.checkAnswer(arrSize); }

In this question, you will just do the partition step.

For this question, you will NOT move the pivot at the end of the partition process.

Remember that partition moves left and right indices inwards, swapping records as appropriate. So you will need to swap some records by clicking on the two to exchange.