A certain binary tree has leaves. What is the number of nodes in that tree having two children?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The number of nodes with two children is always one less than the number of leaves.
We can use Handshaking Lemma to prove it.