Question DSA-QUE-0052
MediumWhat is the time complexity of insertion and removal of the highest-priority item in a binary-heap priority queue?
- A.
O(n log n) each
- B.
O(log n) each
- 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
Queues and Deques question
What is the time complexity of insertion and removal of the highest-priority item in a binary-heap priority queue?
O(n log n) each
O(log n) each
Sign up free to see the answer and a step-by-step explanation.
O(n) each
O(1) each