Write a program to find maximum height of the odd level leaf node of a binary tree. The problem has been picked up from GeeksforGeeks
A quick solution will be to use the solution for finding the max depth of the tree and modifying it to calculate the depth using only the odd level leaf nodes.
Read more ...
Search This Blog
Showing posts with label Tree. Show all posts
Showing posts with label Tree. Show all posts
Sep 2, 2013Find depth of the deepest odd level leaf node in a binary tree
Subscribe to:
Posts
(
Atom
)
|