Question DSA-QUE-0079
HardWhat is the maximum size a BFS queue reaches on a perfect binary tree of height h?
- A.
About 2^(h−1), the width of the last level
- B.
h
- 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 maximum size a BFS queue reaches on a perfect binary tree of height h?
About 2^(h−1), the width of the last level
h
Sign up free to see the answer and a step-by-step explanation.
2^h × h
1