Skip to content

assignment-1#1

Open
StartupPartner01 wants to merge 1 commit intoassignment-1from
main
Open

assignment-1#1
StartupPartner01 wants to merge 1 commit intoassignment-1from
main

Conversation

@StartupPartner01
Copy link
Copy Markdown
Owner

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

added code

What did you learn from the changes you have made?

functions and methods

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

Instead of sorting the characters in each word, we could count the occurrences of each character in both words and compare the counts. If the counts for each character are the same in both words, then the words are anagrams.

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

finding the method to apply

How were these changes tested?

by passing a test argument in a function

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

Checklist

  • [x ] I can confirm that my changes are working as intended

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! Your code executes without error and is well commented. One suggestion would be to reduce redundancy in your code, for example a conditional statement returns a Boolean True/False, so not necessary to specify return !

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