Find the diameter of a binary search tree.
Hint: this can be either in the left sub-tree or in the right-subtree or crossing the root.
Laptop Week Review: Lenovo Yoga 13
-
[image: scaled-2076]Convertibles were all the rage back in the 1950s
(thanks to tailfins and the Corvette) and in the early 2000s (thanks to
Microsoft and ...
1 minute ago
An O(n) algorithm http://tech-queries.blogspot.com/2010/09/diameter-of-tree-in-on.html
ReplyDelete