Tree: Depth-First Search - Count Complete Tree Nodes
Consider two approaches to count nodes in a complete binary tree:
Approach 1: Simple DFS traversal counting all nodes.
Approach 2: Using tree height to detect perfect subtrees and count nodes recursively.
When is Approach 2 more efficient than Approach 1?
