Esempio n. 1
0
        static void Main(string[] args)
        {
            BinaryTree b = new BinaryTree();

            b.insert(8);
            b.insert(10);
            b.insert(10);
            //b.insert(15);
            //b.insert(11);
            //b.insert(9);
            //b.insert(26);
            b.insert(4);
            //b.insert(6);
            //b.insert(2);
            //b.insert(2);

            b.Inorder();
            b.Postorder();
            //Console.WriteLine(b.Min());
            //Console.WriteLine(b.Max());
            b.Delete(99);

            b.Inorder();
        }