Concept Flow - Diameter of Binary Tree
Start at root node
Calculate left subtree height
Calculate right subtree height
Update max diameter if left height + right height is larger
Return height of current node = max(left, right) + 1
Repeat for left and right child nodes recursively
End when leaf nodes reached (height=0)
We recursively find the height of left and right subtrees at each node, update the maximum diameter found so far as the sum of these heights, and return the height to parent nodes.
