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
int quickSelect(int A[], int l, int h,int k) { int p = partition(A, l, h); if(p==(k-1)) return A[p]; else if(p>(k-1)) return quickSelect(A, l, p - 1,k); else return quickSelect(A, p + 1, h,k); }
// partition function same as QuickSort