예제 #1
0
        public static void Main(string[] args)
        {
            var tree = new BinTree <int>();

            tree.Add(3);
            tree.Add(1);
            tree.Add(2);
            tree.Add(4);

            Console.WriteLine(tree);

            tree.Delete(1);

            Console.WriteLine(tree);
        }