Example #1
0
 // Set the left underlying node
 public void SetLeft(BinaryNode <T> left) => this.left = left;
Example #2
0
 // Set the right underlying node
 public void SetRight(BinaryNode <T> right) => this.right = right;
Example #3
0
 // Constructor
 public BinaryNode(T data, BinaryNode <T> left, BinaryNode <T> right)
 {
     this.data  = data;
     this.left  = left;
     this.right = right;
 }