Concept Flow - Diameter of Binary Tree
Start at root node
Compute left subtree height
Compute right subtree height
Calculate diameter through current node = left height + right height
Update max diameter if current is larger
Return height of current node = max(left, right) + 1
Repeat for left and right children recursively
Final max diameter stored after full traversal
The flow shows how we recursively find heights of left and right subtrees, update the diameter at each node, and return heights up the tree.
