Rust icon indicating copy to clipboard operation
Rust copied to clipboard

Refactor palindrom checking algorithm

Open bgdnrvsky opened this issue 6 months ago • 1 comments

Description

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

Checklist:

  • [x] I ran bellow commands using the latest version of rust nightly.
  • [x] I ran cargo clippy --all -- -D warnings just before my last commit and fixed any issue that was found.
  • [x] I ran cargo fmt just before my last commit.
  • [x] I ran cargo test just before my last commit and all tests passed.
  • [x] I checked COUNTRIBUTING.md and my code follows its guidelines.

bgdnrvsky avatar Aug 11 '24 14:08 bgdnrvsky