Question DSA-HEAP-0059
MediumHeap sort on an array of n elements uses how much extra space?
- A.
O(n)
- B.
O(n log n)
- 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
Heaps and Priority Queues question
Heap sort on an array of n elements uses how much extra space?
O(n)
O(n log n)
Sign up free to see the answer and a step-by-step explanation.
O(1)
O(log n) for the heap