We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Tree: Height of a Binary Tree
- Discussions
Tree: Height of a Binary Tree
Tree: Height of a Binary Tree
Sort by
recency
|
12 Discussions
|
Please Login in order to post a comment
How was this problem classified as requiring advanced problem solving? It is much easier than many supposedly easy problems in this preparation kit.
Java 8, O(log n)
It seems it's broken on JS: it's comparing NaN with root.data preparing the Tree. and all the nodes are on the right then...
C++ using a stack and iteration instead of recursion.