Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Much simpler range sum operation#1392

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Stillswarm wants to merge5 commits intocp-algorithms:main
base:main
Choose a base branch
Loading
fromStillswarm:patch-1

Conversation

Stillswarm
Copy link

@StillswarmStillswarm commentedNov 13, 2024
edited
Loading

I have provided the overview and implementation of a much simpler range sum query function, which does not require splitting the original query. I have explicitly outlined the three cases that may arise while processing a range sum query and the code directly reflects these cases. This implementation is much more beginner friendly and intuitive.

Stillswarmand others added2 commitsNovember 13, 2024 09:37
I have provided the overview and implementation of a much simpler range sum query function, which does not require splitting the query. I have explicitly outlined the three cases that may arise while processing a range sum query and the code directly reflects these cases.This implementation is much more beginner friendly and intuitive.
@mhayter
Copy link
Contributor

I tend to write segment trees in a similar way but I'm not sure what@adamant-pwn would think. Should this be a diff section or undo the previous?

@adamant-pwn
Copy link
Member

Thanks for the pull request! I also prefer this implementation. Moreover, I would also use half-open intervals, rather than segments. The main issue here is that all the other places in the article still use the old style.@Stillswarm would you have some time to also update the remaining sections of the article to use this style?

@Stillswarm
Copy link
Author

@adamant-pwn sure. i will try to refactor as soon as possible

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@adamant-pwnadamant-pwnadamant-pwn left review comments

@jakobkoglerjakobkoglerAwaiting requested review from jakobkogler

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Stillswarm@mhayter@adamant-pwn

[8]ページ先頭

©2009-2025 Movatter.jp