RedBlackTree.erase
Erases an entry by its key.
Arguments
key
for the entry to erase. If there is no such key, the method has no effect.
Return values
None
Complexity
O(log(size))
Example
Output:
{ key: 3; value: "THREE"; }
{ key: 12; value: "aaa"; }
{ key: 56; value: "fifty-six"; }
after erase
{ key: 12; value: "aaa"; }
{ key: 56; value: "fifty-six"; }