Concept Flow - Height of Binary Tree
Start at root node
Is node null?
Yes→Return 0
No
Recursively find height of left subtree
Recursively find height of right subtree
Calculate max(leftHeight, rightHeight) + 1
Return height
Start from the root, recursively find the height of left and right subtrees, then return the larger height plus one.
