I'm currently struggling with solving the following problem: given a tree T made up of n internal nodes, where n-k nodes have 2 children and k nodes have 3 children, demonstrate that T has n+k+1 leaves.
Can anyone help me or point me to the right direction? Thank you in advance!
Try thinking of the tree as a family tree, and what a node with 2 children does to the number of nodes in the next generation... What does a node with 3 children do? Hope this helps