Page 1 of 1

Which is the safest method to choose a pivot element?

Posted: Wed Jul 13, 2022 6:15 pm
by answerhappygod
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