예제 #1
0
 /// <summary>
 /// Method used to add a new node to a binary search tree.
 /// </summary>
 /// <param name="node">The new node to add to the binary search tree.</param>
 public void AddNode(BinarySearchTreeNode node)
 {
     AddNodeHelper(head, node);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinarySearchTree"/> class.
 /// </summary>
 /// <param name="head">The head node of the binary search tree.</param>
 public BinarySearchTree(BinarySearchTreeNode head)
 {
     this.head = head;
 }