-
-
Notifications
You must be signed in to change notification settings - Fork 44.4k
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
Added a function that checks if given string can be rearranged to form a palindrome. #2450
Added a function that checks if given string can be rearranged to form a palindrome. #2450
Conversation
Hey @susmith98, TravisCI finished with status TravisBuddy Request Identifier: c6c392a0-fa8d-11ea-8549-e58e00c6eb1f |
…o can_string_be_rearranged_as_palindrome.py
Hey @susmith98, TravisCI finished with status TravisBuddy Request Identifier: 8dd78b90-faa6-11ea-8549-e58e00c6eb1f |
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.
Counter is faster for long strings and non-Counter is faster for short strings.
…m a palindrome. (TheAlgorithms#2450) * Added check_if_string_can_be_rearranged_as_palindrome function. * Added counter implementation and benchmark function. * flake changes * Update and rename check_if_string_can_be_converted_to_palindrome.py to can_string_be_rearranged_as_palindrome.py * Update can_string_be_rearranged_as_palindrome.py * # Co-authored-by: svedire <[email protected]> Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.