Concept Flow - Diameter of Binary Tree
Start at root node
Compute left subtree height
Compute right subtree height
Calculate diameter at this node = left height + right height
Update max diameter if current is larger
Return height = max(left height, right height) + 1
Repeat for left and right child nodes recursively
Final max diameter is the answer
We recursively find the height of left and right subtrees at each node, update the maximum diameter found, and return the height to parent nodes.