예제 #1
0
 /// <summary>
 /// Internal use only
 /// </summary>
 protected HatinaryTree(BNode <T> hat, BNode <T> root)
 {
     Hat  = hat;
     Root = root;
 }
예제 #2
0
 /// <summary>
 /// Construct a Binary Node, with data, left child and right child.
 /// </summary>
 /// <param name="data">
 /// Nullable
 /// </param>
 /// <param name="l">
 /// BNode of the same type. left child.
 /// </param>
 /// <param name="r">
 /// BNode of the same type, right child.
 /// </param>
 public BNode(T data, BNode <T> l = null, BNode <T> r = null)
 {
     Data       = data;
     LeftChild  = l;
     RightChild = r;
 }