예제 #1
0
 public BinaryTree(BTNode root, BinaryTree left, BinaryTree right) {
   this.root = root;
   root.setLeft(left.root);
   this.left = left;
   root.setRight(right.root);
   this.right = right;
 }
예제 #2
0
 public void setLeft(BinaryTree left) {
   root.setLeft(left.root);
   this.left = left;
 }