top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

how to print all the cousins of a node in binary search tree, except second cousins?

0 votes
449 views
how to print all the cousins of a node in binary search tree, except second cousins?
posted Oct 21, 2017 by anonymous

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

Similar Questions
+7 votes

Print cousins of a given node (Not sibling) ??

0 votes

Give program time complexity as well as.

+6 votes

Given binary tree is:

        1
     /     \
    2        3
  /  \        \
 4   5         6
             /   \
            7     8

The output should be 1, 2, 3, 4, 5, 6, 7, 8

...