Practice Problem
Diameter of Binary Tree
Difficulty: Easy
Given the root of a binary tree, return the length of the diameter (the longest path between any two nodes, measured in edges).
Practice Problem
Difficulty: Easy
Given the root of a binary tree, return the length of the diameter (the longest path between any two nodes, measured in edges).