Problem Find the number of leaf nodes in a full binary tree with n nodes.
I wrote a recursive program for the above problem, traversing the tree and increasing the count of leaf nodes whenever I reach a node which has no children. But since the tree is a full binary tree I think that it will make the problem easier but I can't figure it out how. Can it be reduced in a compact form (something like a formula).