Skip to content

Update Fenwick Tree Implementation #784

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

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

sozelfist
Copy link
Contributor

Changes:

  • Add basic functinalities: range_query, point_query, update and set
  • Add docstring

Checklist:

  • I ran bellow commands using the latest version of rust nightly.
  • I ran cargo clippy --all -- -D warnings just before my last commit and fixed any issue that was found.
  • I ran cargo fmt just before my last commit.
  • I ran cargo test just before my last commit and all tests passed.
  • I added my algorithm to the corresponding mod.rs file within its own folder, and in any parent folder(s).
  • I added my algorithm to DIRECTORY.md with the correct link.
  • I checked COUNTRIBUTING.md and my code follows its guidelines.

- Add basic functinalities: `range_query`, `point_query`, `update`
and `set`
- Add docstring
@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.09%. Comparing base (618c13d) to head (4b61f66).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #784      +/-   ##
==========================================
+ Coverage   95.07%   95.09%   +0.01%     
==========================================
  Files         309      309              
  Lines       22770    22834      +64     
==========================================
+ Hits        21649    21713      +64     
  Misses       1121     1121              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Clarify the documentation to emphasize the distinction between 1-based indexing (internally) and 0-based indexing (externally)
- Simplify the lowbit function to avoid casting between `isize` and `usize`
@sozelfist
Copy link
Contributor Author

Can you have a look, @vil02?

@vil02 vil02 merged commit 77da9fe into TheAlgorithms:master Sep 9, 2024
3 of 4 checks passed
@sozelfist sozelfist deleted the ref/ds/fenwick_tree branch September 10, 2024 00:58
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.

3 participants