Пример #1
0
        public static void Main()
        {
            Node treeNode = new Node();
            BinarySearchTree.Insert(ref treeNode, 10);
            BinarySearchTree.Insert(ref treeNode, 3);
            BinarySearchTree.Insert(ref treeNode, 9);

            BinarySearchTree.Remove(ref treeNode, 3);

            // Nothing is printed out  - node is removed
            Console.WriteLine(BinarySearchTree.Search(ref treeNode, 3));
        }