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

Allow RangeBounds for fenwicktree, segtree, and lazysegtree #101

Merged
merged 4 commits into from
Apr 8, 2023

Conversation

TonalidadeHidrica
Copy link
Collaborator

The rustic way to specify a certain range of a container is to use s..t notation. I changed the signature of FenwickTree::sum, Segtree::prod, and LazySegtree::prod so that they accept any range notation like .., s..t, s..=t, ..t and so on.

@TonalidadeHidrica
Copy link
Collaborator Author

TonalidadeHidrica commented Jun 21, 2022

Oh by the way, I forgot to change the signature of LazySegtree::apply_range too. I'll do it later.

Copy link
Member

@qryxip qryxip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Merging

@qryxip qryxip merged commit 44b3805 into rust-lang-ja:master Apr 8, 2023
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