Question: BinarySearchTree tree = new BinarySearchTree ( ) ; tree.add ( L ) ; tree.add ( P ) ; tree.add (

BinarySearchTree tree = new BinarySearchTree();
tree.add("L");
tree.add("P");
tree.add("E");
tree.add("C");
tree.add("H");
After the last line has executed, whichBinaryNode does data field rootpoint to?
A.The BinaryNode with data letter "L".B.The BinaryNode with data letter "P".C.The BinaryNode with data letter "E".D.The BinaryNode with data letter "C".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!