-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
make language consistent #1563
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
base: main
Are you sure you want to change the base?
make language consistent #1563
Conversation
src/data_structures/fenwick.md
Outdated
| b[idx] += x | ||
| idx += idx & -idx | ||
| ```cpp | ||
| void add(std::vector<int> b, int idx, int x) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not pass the entire vector, just the reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
|
|
||
| We can find arbitrary range sums by computing the prefix sums for $l-1$ and $r$ and taking the difference of them again. | ||
|
|
||
| ```python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we actually keep both Python and C++?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want it for the whole fenwick module or just this one?
i think it is better to make coding language consistent.