Skip to content

Assignment 1#6

Open
ShuoyanXu wants to merge 1 commit intomainfrom
assignment-1
Open

Assignment 1#6
ShuoyanXu wants to merge 1 commit intomainfrom
assignment-1

Conversation

@ShuoyanXu
Copy link
Copy Markdown
Owner

@ShuoyanXu ShuoyanXu commented Oct 30, 2025

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Implemented anagram_checker(word_a, word_b) and added a simple runtime check
How to normalize string inputs for reliable comparison.

What did you learn from the changes you have made?

Pre-filtering to only letters and ignoring spaces or punctuation if the spec required phrase anagrams.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Using collections.Counter to compare character frequencies which avoids sorting and can be clearer for large inputs.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

mixed-case inputs like “Silent” vs “listen”

How were these changes tested?

Ran the provided check

A reference to a related issue in your repository (if applicable)

N/A

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@Dmytro-Bonislavskyi Dmytro-Bonislavskyi left a comment

Choose a reason for hiding this comment

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

Done

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.

2 participants