Tree: Depth-First Search - Count Complete Tree Nodes
Consider the following complete binary tree:
10
/ \
5 15
/ \ /
3 7 12
Using an optimal countNodes function that leverages subtree heights, what is the total number of nodes in this tree?
