Diameter of Binary Tree at Meta
Easy65.0% acceptance
This problem has 87.5% frequency at Meta.
Problem Description
Given the `root` of a binary tree, return _the length of the**diameter** of the tree_. The **diameter** of a binary tree is the **length** of the longest path between any two nodes in a tree. This path may or may not pass through the `root`. The **length** of a path between two nodes is represente...
Read full problem and hintsTopics
Also asked at 18 companies
More Meta Questions
Binary Tree Right Side ViewMediumLowest Common Ancestor of a Binary TreeMediumSum Root to Leaf NumbersMediumClone GraphMediumMaking A Large IslandHard
View all Meta questions