Skip to content

Fix Permutation Palindrome Solution2 - #233

Merged
igorwojda merged 1 commit into
mainfrom
fix-permutation-palindrome-solution2
Sep 5, 2026
Merged

Fix Permutation Palindrome Solution2#233
igorwojda merged 1 commit into
mainfrom
fix-permutation-palindrome-solution2

Conversation

@igorwojda

Copy link
Copy Markdown
Owner

No description provided.

Solution2 required exactly one odd character count, so even-length
inputs like "oooo" or "abba" were reported as not being palindrome
permutations. Relax the check to at most one odd count and cover the
case with tests. Also drop the unused parameter in Solution1.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@igorwojda
igorwojda merged commit ae1a6d9 into main Sep 5, 2026
1 check passed
@igorwojda
igorwojda deleted the fix-permutation-palindrome-solution2 branch September 5, 2026 11:47
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.

1 participant