Objective1 markeasySolution
What is the worst-case time complexity of Quick Sort algorithm?
- AO(n)
- BO(n log n)
- CO(n^2)
- DO(log n)
Data Structures and Algorithms
Nepal's open education portal — School, +2, Diploma, Bachelor & Master in one place
solution · en · Verified by Editorial Board
Correct Answer: (c) O(n^2)
Explanation: Quick Sort encounters worst-case time complexity O(n2) when the pivot chosen is consistently the extreme element (smallest or largest), such as when partitioning an already sorted array.