arya2004 / leetcode-daily-october-hacktoberfest-2024

Leetcode Daily October Hacktoberfest 2024
MIT License
10 stars 49 forks source link

Create uniqueEmail.py #63

Closed rrayhka closed 1 month ago

rrayhka commented 1 month ago

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 and m is the average length of the email strings.