Question: Please fill in the missing code /* */ package KW.CH06; import java.util.List; import java.util.ArrayList; /** * A class to represent a binary search tree. */
Please fill in the missing code
/*
import java.util.List; import java.util.ArrayList;
/** * A class to represent a binary search tree. */ public class BinarySearchTree
/** Return value from the public add method. */ protected boolean addReturn; /** Return value from the public delete method. */ protected E deleteReturn;
//Methods /*
/** * Recursive find method. * @param localRoot The local subtrees root * @param target The object being sought * @return The object, if found, otherwise null */ private E find(Node
} /*
/*
/** * Recursive add method. * @post The data field addReturn is set true if the item is added to * the tree, false if the item is already in the tree. * @param localRoot The local root of the subtree * @param item The object to be inserted * @return The new local root that now contains the * inserted item */ private Node
} /*
} /*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
