Tree: Height of a Binary Tree

  • + 0 comments

    Hi, tree height in the example is correctly defined. it calculated as n = n-1 where n is no. of nodes. For ex. if no. of nodes is 4 then no. of edges will be 3 and that will be the max height.

    No. of edges which is always less than the no. of nodes that is how it is used to calculate height of binary tree.