public interface CompleteBinaryTree<E> extends BinaryTree<E>
Modifier and Type | Method and Description |
---|---|
Position<E> |
add(E elem)
Adds an element to the tree just after the last node.
|
E |
remove()
Removes and returns the element stored in the last node of the
tree.
|
hasLeft, hasRight, left, right