Exemplo n.º 1
0
 public void Clear()
 {
     RootNode = new BinaryTreeNode <T>();
     Count    = 0;
 }
Exemplo n.º 2
0
        public bool Contains(T value)
        {
            BinaryTreeNode <T> result = FindNodeByValue(RootNode, value);

            return(result != null);
        }
Exemplo n.º 3
0
 public BinarySearchTree()
 {
     RootNode = new BinaryTreeNode <T>();
 }