예제 #1
0
        public static void main(string[] args)
        {
            BT bt = new BT();

            bt.TakeInput();
            bt.Display();
            // Console.WriteLine(bt.Ht());

            //BT bt2 = new BT();
            //bt2.TakeInput();

            //Console.WriteLine(bt.FlipEquivalent(bt2));

            //Console.WriteLine(bt.max());
            //Console.WriteLine(bt.min());

            //  Console.WriteLine(bt.isBST());

            bt.VerticalDisplay();
        }
예제 #2
0
 public bool FlipEquivalent(BT other)
 {
     return(FlipEquivalent(this.root, other.root));
 }