Skip to content

Added anagram_checker function with case insensitive option#2

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

Added anagram_checker function with case insensitive option#2
AlexanderTheAlright wants to merge 1 commit intomainfrom
assignment-1

Conversation

@AlexanderTheAlright
Copy link
Copy Markdown
Owner

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

I added in anagram checker function which normalizes the word, sorts them, and then tests if they are equivalent. It also has the option to run case insensitive or not.

What did you learn from the changes you have made?

I learned how to think creatively to develop basic useful functions. I thought about many different approaches to this problem (frequency counting, manual frequency dictionary, using sets) and then decided on what I felt was simplest.

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

As mentioned previously, I thought about frequency counting the letters and then testing if they were equivalent, manual frequency dictionary, and using sets to check for anagrams. It took me way too long to realize I could just use the sort function.

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

No major challenges. I felt this assignment was relatively straightforward.

How were these changes tested?

I tested them by checking whether or not the words were actually anagrams.

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

NA

Checklist

  • [x ] I can confirm that my changes are working as intended
  • [x ] I can confirm that I tested multiple approaches
  • I can confirm that GitHub actions are now actually enabled (I always forget to do this)

Copy link
Copy Markdown

@juliagallucci juliagallucci left a comment

Choose a reason for hiding this comment

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

Great!

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