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
Tree: Height of a Binary Tree
Sort by
recency
|
989 Discussions
|
Please Login in order to post a comment
I've consistently been getting "We couldn't process your submission" errors for a solution that passes all tests for several days in a row.
def height(root): if root is not None: left_height = height(root.left) right_height = height(root.right) return max(left_height, right_height) + 1 else: return -1
py code
I'm sorry what sort of boilerplate code is this supposed to be in C#??? I even know the solution to this but I can't even run...
Testing a dummy case like
gives COMPILATION errors:
Isn't
root
supposed to be initialized and passed by wrapper code???Hello Everyone, if you have the aim of retrieving your lost stolen crypto Message Watchdogs Guard Team on Whats App. plus15 4 0 7 1 7 2 6 8 5
Solution in Java: