07.03 · Problem
Diameter of Binary Tree
This problem is part of solulu Pro
The diameter of a binary tree is the number of edges on the longest path between any two nodes. The path doesn't have to pass through the root. Return the diameter.
Lifetime ₹1,999 ₹999 · Launch offer
Item 48 of 150 · updated 2026-10-12