示例#1
0
        public static void TestRedBlackTree()
        {
            RedBlackTree <int, int> redBlackTree = new RedBlackTree <int, int>();

            redBlackTree.AddByRecursion(10, 10);
            redBlackTree.AddByRecursion(9, 9);
            redBlackTree.AddByRecursion(8, 8);
            redBlackTree.AddByRecursion(7, 7);
            redBlackTree.AddByRecursion(6, 6);
            redBlackTree.AddByRecursion(5, 5);
            redBlackTree.AddByRecursion(4, 4);
            redBlackTree.AddByRecursion(3, 3);
            redBlackTree.AddByRecursion(2, 2);
            redBlackTree.AddByRecursion(1, 1);
        }