I\'ve been poring over various tutorials and articles that discuss quicksort and quickselect, however my understanding of them is still shaky.
Given this code struct
Partition is pretty simple: it rearranges the elements so those less than a selected pivot are at lower indices in the array than the pivot and those larger than the pivot are at higher indices in the array.
I talked about the rest it in a previous answer.