Aptitude | GATE IT 2006 | Question 9
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
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/
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
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.