Question DSA-QUE-0069
HardWhat is the time complexity of building a priority queue from n items and removing all of them in order?
- A.
O(n log n)
- B.
O(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
Queues and Deques question
What is the time complexity of building a priority queue from n items and removing all of them in order?
O(n log n)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n²)
O(log n)