1.

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» B. choosing the first element as pivot


Discussion

No Comment Found