M
Q. Which is the worst method of choosing a pivot element?
Explanation by: Mr. Dubey
choosing the first element as pivot is the worst method because if the input is pre-sorted or in reverse order, then the pivot provides a poor partition.
You must be Logged in to update hint/solution
Loading Comments....
Question analytics

Discusssion
Login to discuss.