|
Entry remove(Key k)
{
e = keySearch(k, root); // Find entry containing key k
// starting with the root node
if ( e == null )
return; // Not found, exit...
Delete the entry e from the node that contains e.
}
|
|
|
|
|
|
|
Note:
|
Example:
|
|
|
|
|
(This is exactly like a delete operation in a binary search tree)
|