Take out a piece of paper. We’ll be programming on paper.
public class BinarySearchTree<E> {
private BinaryNode<E> root;
private Comparator<E> c;
public E find(E e) {
// your code
}
private class BinaryNode<E> {
private E data;
private BinaryNode<E> left;
private BinaryNode<E> right;
}
}