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 diameter is larger
Return height of current node = max(left height, right height) + 1
Repeat for left and right child nodes recursively
Final max diameter stored after full traversal
End
The diameter is found by recursively computing heights of left and right subtrees at each node, updating the maximum diameter found as the sum of these heights.