Concept Flow - Height of Binary Tree
Start at root node
Is node null?
Yes→Return 0
No
Find height of left subtree
Find height of right subtree
Height = max(left, right) + 1
Return height
We start at the root and recursively find the height of left and right subtrees. The height of the node is the maximum of these two heights plus one.