Skip to content

Add above/below functionality - #67

Merged
w8r merged 1 commit into
w8r:masterfrom
VincentJ711:above-below
Feb 11, 2026
Merged

Add above/below functionality#67
w8r merged 1 commit into
w8r:masterfrom
VincentJ711:above-below

Conversation

@VincentJ711

@VincentJ711 VincentJ711 commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

The purpose of this PR is to facilitate search filtering in ascending/descending order of the keys. If i want to find all the nodes having keys in the range [x, y] in ascending order, then i need to find the node with key below x as the start point. Similarly, if i want to find them in descending order, i need to find the node with key above y as the starting point. Also, I should be able to do it without knowing if x or y are keys in the tree.

@VincentJ711
VincentJ711 force-pushed the above-below branch 2 times, most recently from 5036f5c to 2cc7231 Compare February 8, 2026 17:50
@w8r

w8r commented Feb 9, 2026

Copy link
Copy Markdown
Owner

Great addition, thank you! I believe I have something like that in my other lib https://github.com/w8r/splay-tree, let me check the naming

@w8r

w8r commented Feb 11, 2026

Copy link
Copy Markdown
Owner

I think it's great, I'll release it. Thank you once again

@w8r
w8r merged commit 6cf0c59 into w8r:master Feb 11, 2026
2 checks passed
@VincentJ711
VincentJ711 deleted the above-below branch February 11, 2026 20:13
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