Tree: Depth-First Search - Diameter of Binary Tree
The following code attempts to compute the diameter of a binary tree using an optimized recursive approach. Identify the line containing the subtle bug that causes incorrect diameter calculation.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions