Skip to content

Fix for erase losing RB Tree Property - #67

Merged
5cript merged 4 commits into
masterfrom
fix/erase-rb-property
Aug 30, 2026
Merged

Fix for erase losing RB Tree Property#67
5cript merged 4 commits into
masterfrom
fix/erase-rb-property

Conversation

@5cript

@5cript 5cript commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Erase fixup was not triggered on the correct conditions leaving the tree in an invalid RB state.
The tree itself was still valid for searching, but performance degradation would occur on (repeated) erase.

Resolves #66

@5cript
5cript merged commit 875b625 into master Aug 30, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

erase() does not preserve red-black tree properties

1 participant