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
|
11 Discussions
|
Please Login in order to post a comment
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.
Python 3 Using an explicit stack instead of recursion