You are viewing a single comment's thread. Return to all comments →
Recursively calculate height of left and right subtrees of a node and assign height to the node as max of the heights of two children plus 1
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Height of a Binary Tree
You are viewing a single comment's thread. Return to all comments →
Recursively calculate height of left and right subtrees of a node and assign height to the node as max of the heights of two children plus 1