Find Diameter of Binary Tree

the complexity is O(n^2) . since each node is visi…

Unknown - May 1, 2013

the complexity is O(n^2) . since each node is visit multiple times as the traversal is top bottom and not bottom up.


See also