In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree is
(A) 10
(B) 11
(C) 12
(D) 15
Answer: (B)
Explanation: In a binary tree, the number of leaf nodes is always 1 more than number of internal nodes with 2 children, refer https://www.geeksforgeeks.org/handshaking-lemma-and-interesting-tree-properties/
So,
Number of Leaf Nodes = Number of Internal nodes with 2 children + 1
Number of Leaf Nodes = 10 + 1
Number of Leaf Nodes = 11
Quiz of this Question
Recommended Posts:
- Aptitude | GATE IT 2006 | Question 2
- Aptitude | GATE IT 2006 | Question 1
- Aptitude | GATE IT 2006 | Question 4
- Aptitude | GATE IT 2006 | Question 5
- Aptitude | GATE IT 2006 | Question 7
- Aptitude | GATE IT 2006 | Question 8
- Aptitude | GATE IT 2006 | Question 7
- Aptitude | GATE IT 2006 | Question 3
- GATE | GATE-CS-2006 | Question 80
- GATE | GATE-CS-2006 | Question 75
- GATE | GATE-CS-2006 | Question 76
- GATE | GATE-CS-2006 | Question 78
- GATE | GATE-CS-2006 | Question 77
- GATE | GATE-CS-2006 | Question 82
- GATE | GATE-CS-2006 | Question 79
- GATE | GATE-CS-2006 | Question 83
- GATE | GATE-CS-2006 | Question 84
- GATE | GATE-CS-2006 | Question 74
- GATE | GATE-CS-2006 | Question 73
- GATE | GATE-CS-2006 | Question 57

