Height Of Tree
Given a binary tree, find and return the height of given tree.
Given a binary tree, find and return the height of given tree.
Nodes in the level order form (separated by space). If any node does not have left or right child, take -1 in its place
Height
10
9
4
-1
-1
5
8
-1
6
-1
-1
3
-1
-1
-1
5
This comment has been removed by a blog administrator.
ReplyDelete