Please help me implement public boolean remove forBinarySearchTree in Java.
public class BinarySearchTree<E extendsComparable<E>>
{
TreeNode<E> root;
public BinarySearchTree(){
root = null;
}
/**
* Remove the given data from this binary search tree andreturn
* true. If the data is not in the tree, return false
*/
public boolean remove(E data){
}
}
Expert Answer
An answer will be send to you shortly. . . . .