Be the first user to complete this post

Add to List 
Find the Size of the Binary Tree
Objective: Given a Binary tree, Find the size of the tree.
Note : Size of the tree is number of nodes in the tree
Input: A Binary Tree.
Output: Size of the tree.
Example :
Approach :
 Very Simple solution
 Start from the root.
 Size = 1 (for the root) + Size Of left SubTree + Size Of right SubTree
 solve the left subtree and right subtree recursively.
Time Complexity : O(n)
Code:
Size of the Tree is : 7
Also Read: