## Calculate height of binary tree | Iterative & Recursive

Write an efficient algorithm to compute the height of binary tree. The height or depth of a tree is number of edges or nodes on longest path from root node to leaf node. The program should consider number of nodes in the longest path. For example, height of an empty tree is 0 and …