Diameter of a Binary Tree (Code/ Algorithm)
Find the diameter of a binary tree. The number of nodes on the longest path in a binary tree is the diameter. This is a recursive code.
Find the diameter of a binary tree. The number of nodes on the longest path in a binary tree is the diameter. This is a recursive code.