Skip to content

Conversation

@ferutizi
Copy link

sesion-7/anagramas

Adds a new test case to the sonAnagramas test suite to ensure the algorithm correctly handles words with repeated letters.
The new case checks that words containing the same letters in different repetition counts are not considered anagrams.

  • This test prevents false positives in implementations that ignore repeated letters (for example, those using Set)

Expected result:
The test should only pass if the algorithm correctly distinguishes between:

"food" → contains two o
"doff" → contains two f

Expected output: false

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