top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Given a binary tree, whose leaf nodes are connected, how to find the height of this tree?

+2 votes
330 views
Given a binary tree, whose leaf nodes are connected, how to find the height of this tree?
posted Jun 6, 2016 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+7 votes

A binary tree is given and two nodes of this tree is given, we have to find out the algorithm/code for lowest common ancestor of the two given nodes. Common ancestor are the nodes which can be reached from two nodes by following the parent links. Lowest common ancestor is the common ancestor which has the highest depth.

+2 votes

How to print leaf nodes of a binary tree? Sample code in C/C++ would be helpful?

...