std-lib-orphanage
std-lib-orphanage copied to clipboard
Red black tree "remove" bug
Order of removals breaks the tree, tests show the problem. I have no idea of when of whether I will be able to fix this, feel free to take over.
Shorter bug reproduction:
- Insert nodes 12, 15, 47, 50, 60
- Remove 15
According to this visualisation before delete it should look like:

and after like this

but inspecting current implementation root is 47 and the deleted node 15 can be found as tree.root.?.right.?.left