You are viewing a single comment's thread. Return to all comments →
was trying to solve height of tree. Can you check sample Javascript code that built the tree?
The Answer is showing is three, but I think the correct answer is 6 for the sample input 3 5 2 1 4 6 7
Can you show me the tree structure that is built for this sample input 3 5 2 1 4 6 7 ?
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 →
was trying to solve height of tree. Can you check sample Javascript code that built the tree?
The Answer is showing is three, but I think the correct answer is 6 for the sample input 3 5 2 1 4 6 7
Can you show me the tree structure that is built for this sample input 3 5 2 1 4 6 7 ?