Examveda

Which is the safest method to choose a pivot element?

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

Answer: Option A


This Question Belongs to Data Structure >> Sorting Algorithms

Join The Discussion

Related Questions on Sorting Algorithms