Question DSA-TREE-0047
MediumA binary tree has 20 leaves, and every internal node has exactly two children. How many nodes are there?
- A.
21
- B.
39
- 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
A binary tree has 20 leaves, and every internal node has exactly two children. How many nodes are there?
21
39
Sign up free to see the answer and a step-by-step explanation.
19
40