Download Unique Email Addresses.py
class Solution(object): def numUniqueEmails(self, emails): """ :type emails: List[str] :rtype: int """ email_set = set() for email in emails: elements = email.split('@') email_set.add(elements.split('+').replace('.', '') + elements) return len(email_set)
Leetcode 929 Unique Email Addresses problem solution in python3 with explanation. This is the best place to expand your knowledge and get prepared for your next interview.
Feedback is the most important part of any website.
If you have any query, suggestion or feedback, Please feel free to contact us.