AlgoMaster Logo

Diameter of Binary Tree

tree=[1, 2, 3, 4, 5]
0 / 32
algomaster.io
Step:Start: the diameter is the longest path between any two nodes