You are viewing a single comment's thread. Return to all comments →
I returned 0 and it works well with all test case passed. if(root==null) then return 0;
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 →
I returned 0 and it works well with all test case passed. if(root==null) then return 0;