Ejemplo n.º 1
0
 public static void Copy(TreeNode <T> srcTree, TreeNode <T> destTree)
 {
     if (srcTree.Left != null)
     {
         destTree.AddLeft(srcTree.Left.Value);
         Copy(srcTree.Left, destTree.Left);
     }
     if (srcTree.Right != null)
     {
         destTree.AddRight(srcTree.Right.Value);
         Copy(srcTree.Right, destTree.Right);
     }
 }