Runtime

The runtime of a subarray, which is elements, is

How it works

Partitions a array around a pivot element, where smaller values are to the left, and larger values to the right, and returns the index of the pivot.