Question: What is the time complexity of the worst-case scenario for Quick Sort when the pivot is the smallest or largest element?
Options:
Correct Answer: O(n^2)
Solution:
The worst-case time complexity for Quick Sort occurs when the pivot is the smallest or largest element, resulting in O(n^2).