Skip to content

fix comparator name in remove method#2113

Open
zamadye wants to merge 1 commit intotrekhleb:masterfrom
zamadye:master
Open

fix comparator name in remove method#2113
zamadye wants to merge 1 commit intotrekhleb:masterfrom
zamadye:master

Conversation

@zamadye
Copy link

@zamadye zamadye commented Mar 11, 2026

hey, noticed a typo in the remove method. it was using this.nodeComparator.equal() but the class only has this.nodeValueComparator.

changed it to use the correct comparator. should fix the issue with removing nodes.

let me know if anything needs changing!

fixes #2102

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.

BinarySearchTreeNode removing

1 participant