The worst-case time complexity of Quick Sort is:
Show answerHide answer
Correct answer: (B) O(n^2)
Explanation
Occurs when pivots are always the smallest or largest element.
Correct answer: (B) O(n^2)
Explanation
Occurs when pivots are always the smallest or largest element.
This is question 147 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.