Skip to content

Conversation

@aman-1nayak
Copy link

Scenario: Deletion of the Largest Key

Issue: After largest key deletion all next/pre queries on t.maxC gives nil pointer

What's Happening:
When a largest node is removed from the tree due to the deletion operation, the tree is correctly updated. However, the t.maxC node still points to the deleted node, causing all queries of Next or Previous from t.maxC to result in a nil pointer.

@alexey-ernest
Copy link
Owner

Largest key deletion or smallest key deletion? If it is the case then both methods should be updated accordingly.

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.

2 participants