Esempio n. 1
0
        private static void testBinaryTree()
        {
            BinaryTree <int> tree = new BinaryTree <int>();

            tree.AddRecur(8);
            tree.AddRecur(6);
            tree.AddRecur(4);
            tree.AddRecur(2);
            tree.AddRecur(6);
            tree.AddRecur(9);
            tree.AddRecur(12);
            tree.AddRecur(1);
            tree.AddRecur(15);
            tree.AddRecur(3);
            tree.AddRecur(1);

            tree.Print();
        }