Skip to content

fix removal#90

Closed
Hades32 wants to merge 4 commits intopaulmach:masterfrom
UltimateTournament:fix-removal
Closed

fix removal#90
Hades32 wants to merge 4 commits intopaulmach:masterfrom
UltimateTournament:fix-removal

Conversation

@Hades32
Copy link
Copy Markdown
Contributor

@Hades32 Hades32 commented Mar 10, 2022

Without that extra cleanup step it was possible to create nodes with nil values and non-nil children in the middle of the tree which later lead to the removal of those orphans

@Hades32 Hades32 marked this pull request as draft March 10, 2022 18:01
@Hades32
Copy link
Copy Markdown
Contributor Author

Hades32 commented Mar 10, 2022

converting to draft after I found more edge cases that aren't fixed

@Hades32
Copy link
Copy Markdown
Contributor Author

Hades32 commented Mar 11, 2022

Even after this fix there were still cases where this lib couldn't remove points if they had the same coordinates. If anyone struggles with the same, I ended up using https://github.com/Workiva/go-datastructures/tree/master/rangetree

@paulmach
Copy link
Copy Markdown
Owner

paulmach commented Apr 3, 2022

I'm pretty sure this pr fixes the issues raised here. #94

@paulmach paulmach closed this Apr 3, 2022
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