Question DSA-TREE-0046
MediumHow many nodes can a binary tree of height h have at most (height = number of levels)?
- A.
h²
- B.
2ʰ − 1
- 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
Trees question
How many nodes can a binary tree of height h have at most (height = number of levels)?
h²
2ʰ − 1
Sign up free to see the answer and a step-by-step explanation.
2h
2ʰ