algorithms
algorithms copied to clipboard
Check if key exists before deleting it
This fixes https://github.com/kanwei/algorithms/issues/51
This issue existed for both the C and Ruby version of the Red-Black tree.
It's important to check if the element exists before deleting an element from a Red-Black tree.