Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.Iterator;
  2.  
  3. public class BinarySearchTree<T extends Comparable<T>> implements Iterable<Node<T>> {
  4.  
  5.   public boolean add(T value) {
  6.   }
  7.  
  8.   public Node<T> find(T value) {
  9.   }
  10.  
  11.   public boolean remove(T value) {
  12.   }
  13.  
  14.   int getSize() {
  15.   }
  16.  
  17.   public Node<T> getRoot() {
  18.   }
  19.  
  20.   @Override
  21.   public Iterator<Node<T>> iterator() {
  22.   }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement