Vidyalelo
Data Structure · Q220

Sorting Algorithms

Programming · Data Structure · question 220

Q220

Which is the safest method to choose a pivot element?

A.
choosing a random element as pivot
Answer
B.
choosing the first element as pivot
C.
choosing the last element as pivot
D.
median-of-three partitioning method

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board