Sail E0 Webinar
Question
What is the best case complexity of QuickSort?
Options:
A .  O(nlogn)
B .  O(logn)
C .  O(n)
D .  O(n2)
Answer: Option A


The array is partitioned into equal halves, using the Divide and Conquer master theorem, the complexity is found to be O(nlogn).



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers