Skip to content
Medium-Easy Remember Sorting & Searching Multiple Choice

What is the worst-case time and space complexity of quicksort?

Remember — Tests recall of fundamental facts and definitions.

Answer Options

A O(n log n) time, O(log n) space
B O(n²) time, O(n) space
C O(n²) time, O(log n) space
D O(n log n) time, O(n) space

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 31+ more Sorting & Searching questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Sorting & Searching topic (Algorithms).

More Sorting & Searching Questions