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

Refactor Binary Search #722

Merged
merged 4 commits into from
May 28, 2024

Conversation

sozelfist
Copy link
Contributor

Changes

  • Simplify implementation logic
  • Add docstring
  • Rewrite tests using macro

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.

- Simplyfy implementation logic
- Add docstring
- Rewrite tests using macro
@codecov-commenter
Copy link

codecov-commenter commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.95%. Comparing base (c2009cd) to head (e5ef33f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #722      +/-   ##
==========================================
- Coverage   94.96%   94.95%   -0.01%     
==========================================
  Files         303      303              
  Lines       22563    22533      -30     
==========================================
- Hits        21426    21396      -30     
  Misses       1137     1137              

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

src/searching/binary_search.rs Outdated Show resolved Hide resolved
src/searching/binary_search.rs Show resolved Hide resolved
src/searching/binary_search.rs Show resolved Hide resolved
@sozelfist sozelfist requested a review from vil02 May 28, 2024 04:52
@vil02 vil02 merged commit 4e59645 into TheAlgorithms:master May 28, 2024
4 checks passed
@sozelfist sozelfist deleted the ref/searching/binary_search branch May 28, 2024 07:26
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