Question: What is the time complexity of the quicksort algorithm in the worst case?
Options:
Correct Answer: O(n^2)
Solution:
In the worst case, quicksort can degrade to O(n^2) time complexity, typically when the pivot is the smallest or largest element.