Question DSA-HEAP-0030
EasyWhat is the height of a binary heap with n elements?
- A.
About log₂ n
- B.
n/2
- 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 height of a binary heap with n elements?
About log₂ n
n/2
Sign up free to see the answer and a step-by-step explanation.
n
√n