Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will nth_element make some bug? #7

Open
dongfangzhou1108 opened this issue Aug 4, 2021 · 1 comment
Open

will nth_element make some bug? #7

dongfangzhou1108 opened this issue Aug 4, 2021 · 1 comment

Comments

@dongfangzhou1108
Copy link

when build the tree, if the nth number(middle nuumber) have other same member, the seperation of the left/right sub tree will have some error, right?
because this will not fit the condition, which in one dim, left subtree is <= father node, and right subtree is > father node, when the condition occur, i think it will effect query operation.
thank you

@crvs
Copy link
Owner

crvs commented Aug 9, 2021

off the top of my head, I can't be sure, I'll think about this and try to come up with a test-case to make sure everything works as expected.

@crvs crvs pinned this issue Aug 9, 2021
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

No branches or pull requests

2 participants