Question DSA-SORT-0080
HardWhich statement about quick sort's space usage is true?
- A.
It needs O(n log n) space
- B.
It needs no stack
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Sorting question
Which statement about quick sort's space usage is true?
It needs O(n log n) space
It needs no stack
Sign up free to see the answer and a step-by-step explanation.
It needs O(n) extra arrays
It is in place but needs O(log n) stack on average (O(n) worst case without care)