Question 7
Consider the following partition algorithm used in Quicksort. The algorithm takes a list and two 0-based indices, and , and uses the first element as the pivot.
Suppose the partition algorithm is called as:
After one complete execution of , what will be the state of the list ?
—
—
—
—