- Select the pivot element and move it to the appropriate location.
- Select the left and right endpoints of the range you wish to partition and click "Partition".
- Once the partition operation has been done for you, click the location where the pivot value should be moved to.
- When a selected element has been moved to its final sorted location, click "Mark Selected as Sorted".
- Repeat these steps until the array is sorted.
- If you have trouble understanding what you are supposed to do, try viewing a "Model Answer" to see how it is supposed to be done.
- Note : When partitioning, always select the left and right endpoints, even if they are the same element. When processing a sublist of length 1, simply mark the element as sorted. When determining the pivot's final location, treat any elements that match the pivot as if they were larger than the pivot.