Exemple #1
0
 public void MakeEmpty()
 {
     Root = null;
 }
Exemple #2
0
 public BinaryTree(BinaryNode <T> rootNode)
 {
     Root = rootNode;
 }
Exemple #3
0
 public BinaryTree(T rootItem)
 {
     Root = new BinaryNode <T>(rootItem, null, null);
 }
Exemple #4
0
 public BinaryTree()
 {
     Root = null;
 }
Exemple #5
0
 public BinaryNode(T element, BinaryNode <T> lt, BinaryNode <T> rt)
 {
     Element = element;
     Left    = lt;
     Left    = rt;
 }
Exemple #6
0
 public StNode(BinaryNode <T> n)
 {
     timesPopped = 0;
     node        = n;
 }