Question: Define the rotational distance R(T1, T2) between two n-node binary trees T1 and T2 to be the minimum number of rotations needed to convert T1
Define the rotational distance R(T1, T2) between two n-node binary trees T1 and T2 to be the minimum number of rotations needed to convert T1 to T2. Show that R(T1, T2) 2n.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
