The problem involves normalizing email addresses by removing dots (.) from the local name, ignoring everything after the plus (+) sign in the local name, and counting how many unique email addresses exist in the given list.
Fixes #15
Type of Change
Please select the option that best describes your change:
[x] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
The solution has been tested with multiple test cases, including the example provided in the problem description and additional edge cases, to ensure the functionality is correct.
Test Cases:
Test A: Example case from the problem
Test B: Edge cases with emails that have no dots or plus signs in the local name
Test C: All email addresses are unique despite dots and plus signs in local names
Test D: Empty email list (edge case)
Test Configuration:
Operating System: Windows 11
Python Version: 3.11.9
Checklist:
[x] I have read the contribution guidelines for this project
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation (if applicable)
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Additional Information
This Python implementation provides a clean and efficient solution using built-in Python features such as string manipulation and sets. The time complexity of this solution is O(n * m), where n is the number of emails and m is the average length of the email strings.
Pull Request Template
Description
The problem involves normalizing email addresses by removing dots (
.
) from the local name, ignoring everything after the plus (+
) sign in the local name, and counting how many unique email addresses exist in the given list.Fixes #15
Type of Change
Please select the option that best describes your change:
How Has This Been Tested?
The solution has been tested with multiple test cases, including the example provided in the problem description and additional edge cases, to ensure the functionality is correct.
Test Cases:
Test Configuration:
Checklist:
Additional Information
This Python implementation provides a clean and efficient solution using built-in Python features such as string manipulation and sets. The time complexity of this solution is O(n * m), where
n
is the number of emails andm
is the average length of the email strings.