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

Fix integer sum inverse #1

Merged
merged 3 commits into from Apr 6, 2024

Conversation

MiSawa
Copy link
Contributor

@MiSawa MiSawa commented Mar 6, 2024

Hi, this is very interesting data structure! Thank you for the detailed explanation and implementation!

I found an issue that might case access to an unwanted position (either out-of-bounds or different element) of the underlying array when RotatedArraySet is used with a large number of elements (somewhere around 10^8 to 10^9). Maybe it'd be better to select other data structures that has logarithmic performance at that large scale, but here's a patch anyway.

@senderista
Copy link
Owner

Thank you for finding this issue! There may well be other boundary issues in the code...

@senderista senderista merged commit 8b94f09 into senderista:master Apr 6, 2024
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.

None yet

2 participants