Tree: Height of a Binary Tree

  • + 45 comments

    For anyone having problem in sample test case. Please note down that they have considerd height of root as '-1'. So your program should return '-1' when root is NULL.