Question DSA-HEAP-0019
HardWhat is the time complexity of heap sort, and is it stable?
- A.
O(n log n), and it is not stable
- B.
O(n²), and it is not stable
- 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
What is the time complexity of heap sort, and is it stable?
O(n log n), and it is not stable
O(n²), and it is not stable
Sign up free to see the answer and a step-by-step explanation.
O(n), and it is stable
O(n log n), and it is stable