What is the worst case time complexity of a quick sort algorithm?
Show answer
Correct answer C
Quick Sort is a divide-and-conquer sorting algorithm. In the worst case, it occurs when the pivot divides the array very unevenly (e.g., always smallest or largest element). This results in O(n²) comparisons for an array of size n. Key facts: Average case → O(n log n) Best case → O(n log n) Worst case → O(n²).