-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Valid anagram (Resolves #94) #95
Conversation
Overall, great job, Fatima! Your code and documentation are clean, well-structured, and very understandable. I just wanted to point out that your function is case-sensitive, meaning W is not equal to w. However, you don’t have a test case specifically addressing this behavior. Additionally, I think adding a boundary test to handle long inputs would be beneficial. Once again, excellent work! |
Hi Madiha thanks for your review. I already have a test_case_sensitive for handling it. Also, I will definitely add boundary case for long inputs. Thank you for your feedback. |
I have not seen any boundary case in your code. You should add them for better performance. |
Please check again I added boundary case after Madiha's suggestion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked both files. Your solution has no error, working fine, and is ready to merge.
name: solution review
about: A template PR for code review with a checklist
A function that determines if two strings are anagrams of each other. Two strings are considered anagrams if they contain exactly the same characters with the same frequency, regardless of their order.
Behavior
Input:
str1
andstr2
), where each string can contain:Output:
True
orFalse
) where:True
: if the strings are valid anagrams of each otherFalse
: if the strings are not anagramsFiles
/tests/test_file_name.py
Unit Tests
Function Docstring
Raises:
The Function
Strategy
Do's
Don'ts
Implementation
when it's too restricting.
print
statements anywhere