β
Correct Answer: (A)
first element as pivot
Explanation: 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.
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.
Discussion
Question Analytics
773
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
87%
Success Rate