public class BinaryTree<T> extends Object
Constructor and Description |
---|
BinaryTree(T root) |
Modifier and Type | Method and Description |
---|---|
BinaryTreeNode<T> |
getRoot() |
BinaryTreeNode<T> |
insertLeft(BinaryTreeNode<T> p,
T o) |
BinaryTreeNode<T> |
insertRight(BinaryTreeNode<T> p,
T o) |
boolean |
isEmpty() |
public BinaryTree(T root)
public BinaryTreeNode<T> getRoot()
public BinaryTreeNode<T> insertLeft(BinaryTreeNode<T> p, T o)
public BinaryTreeNode<T> insertRight(BinaryTreeNode<T> p, T o)
public boolean isEmpty()
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.