Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var tree1 = BSTree <int> .MakeRandomTree(100);

            var tree2 = tree1.Copy();

            var p = tree1.Root;

            SwapChild(p);

            p = tree2.Root.LeftChild;
            SwapChild(p);

            Console.WriteLine(Isomoprphic(tree1.Root, tree2.Root));
        }