top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Given two n-node trees, how many rotations does it take to convert one tree into the other?

+7 votes
955 views

Given two n-node trees, how many rotations does it take to convert one tree into the other?

posted Nov 18, 2013 by Vikas Upadhyay

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

Similar Questions
+8 votes

Convert the given string into palindrome with minimum number of appends(at end of the given string). O(n) algorithm will be appreciated ??

Input :=> Malayal
Output :=> Malayalam

+7 votes

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

+3 votes

List => 1 2 3 4 5 6 7 8 9

N=3 Out Put => 1 2 3 6 5 4 7 8 9
N=4 Out Put => 1 2 6 5 4 3 7 8 9
N=5 Out Put => 1 2 7 6 5 4 3 8 9

...