Complexity of Quick Sort????(avg)
-
O(n2)
-
O(log n)
-
O(nlogn)
-
O(n2 logn)
C
Correct answer
Explanation
The average-case time complexity of Quick Sort is O(n log n), which occurs when the pivot consistently divides the array into reasonably balanced partitions. Distractors like O(n^2) represent the worst-case complexity, while O(log n) is too low and O(n^2 log n) is inefficient.