Diameter of Binary Tree Visualizer & Step-by-Step Algorithm Solution
Compute the diameter (longest path between any two nodes) by finding max(leftDepth + rightDepth) at each node using postorder DFS.
Category: trees | Difficulty: Easy
Tags: DFS, Binary Tree, Recursion, Tree Height, Path
