Question DSA-CX-0071
HardWhich is the tightest bound for inserting n items into an initially empty binary heap one by one?
- A.
O(n log n) in the worst case
- B.
O(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
Complexity Analysis question
Which is the tightest bound for inserting n items into an initially empty binary heap one by one?
O(n log n) in the worst case
O(log n)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(n²)