You are viewing a single comment's thread. Return to all comments →
Yeah thats not correct. Should return -1 if root is null and 0 if there is a root with its left and right null.
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Height of a Binary Tree
You are viewing a single comment's thread. Return to all comments →
Yeah thats not correct. Should return -1 if root is null and 0 if there is a root with its left and right null.