Solved

Consider the Operation of Deleting the Root of a Binary

Question 10

Multiple Choice

Consider the operation of deleting the root of a binary search tree.If the root is a leaf,then


A) the method doing the deletion should throw an exception
B) the root should be replaced with a dummy place-holder node
C) the reference to the root of the tree should be set to null
D) the element stored in the root node should be replaced with null,or with 0.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions