Deep Dive

Diameter of a Tree

543. Diameter of Binary Tree · Trees · 38 of 78

1/8

Longest path in a tree

1234589
In this lessonStep 1 of 8 · ← → keys
The question

Find the length of the longest path between any two nodes.