Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
user, monkey, ... solution in Clear category for Unique Email Addresses by veky
def unique_emails(emails: list) -> int:
def canonical(email):
user, monkey, domain = email.lower().partition('@')
user, _, _ = user.partition('+')
return user.replace('.', '') + monkey + domain
return len(set(map(canonical, emails)))
Nov. 17, 2021