Fade to Solo
Trees

Diameter of Binary Tree

10 MINEleetcode ↗

Problem

Given the root of a binary tree, find the length of the longest path between any two nodes. The path doesn't have to pass through the root, and its length is measured in edges.

10 MIN00:00unlocks in 10:00
locked10:00 left