@@ -0,0 +1,550 @@
+%0A%0Aclass Solution(object):%0A    def numUniqueEmails(self, emails):%0A        ret = set()%0A        for email in emails:%0A            local, rest = email.split(%22@%22)%0A            pos = local.find(%22+%22)%0A            if pos %3E= 0:%0A                local = local%5B0: pos%5D%0A            local = local.replace(%22.%22, %22%22)%0A%0A            ret.add(local + %22@%22 + rest)%0A        return len(ret)%0A%0A%0Aemails = %5B%22test.email+alex@leetcode.com%22,%0A          %22test.e.mail+bob.cathy@leetcode.com%22,%0A          %22testemail+david@lee.tcode.com%22%5D%0A%0Asol = Solution()%0Aprint(sol.numUniqueEmails(emails))%0A

add unique-email-addresses solution (python version)