Which is the safest method to choose a pivot element?
Posted: Wed Jul 13, 2022 6:15 pm
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
b) choosing the first element as pivot
c) choosing the last element as pivot
d) median-of-three partitioning method