Question

Which is the safest method to choose a pivot element in quick sort?

A choosing a random element as pivot
B choosing the first element as pivot
C choosing the last element as pivot
D median-of-three partitioning method
E None
Practice Next

Hey! Ask a query