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 palindrom checking algorithm #778

Closed
wants to merge 2 commits into from

Conversation

bgdnrvsky
Copy link
Contributor

Description

  • Use simpler approach to check if the string is a palindrome
  • Add unit test for empty palindrome

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 checked COUNTRIBUTING.md and my code follows its guidelines.

@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.07%. Comparing base (45edeb9) to head (7874b83).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
- Coverage   95.08%   95.07%   -0.01%     
==========================================
  Files         309      309              
  Lines       22810    22773      -37     
==========================================
- Hits        21689    21652      -37     
  Misses       1121     1121              

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

src/string/burrows_wheeler_transform.rs Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

The title of this PR is Refactor palindrom checking algorithm. In order to move faster, I would suggest to revert the changes of this file and create another PR with them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, sorry, accidentally pushed it to the master branch

src/string/palindrome.rs Show resolved Hide resolved
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