Top-Interview-Questions--Leetcode icon indicating copy to clipboard operation
Top-Interview-Questions--Leetcode copied to clipboard

Create Diameter of a Binary Tree

Open arushi-2298 opened this issue 4 years ago • 1 comments

The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two end nodes. The diagram below shows two trees each with diameter nine, the leaves that form the ends of the longest path are shaded (note that there is more than one path in each tree of length nine, but no path longer than nine nodes).

arushi-2298 avatar Oct 21 '21 17:10 arushi-2298

@arushi-2298 Please follow naming conventions.

KhushbooGoel01 avatar Oct 23 '21 21:10 KhushbooGoel01