Easy C++ Solution, 24ms, faster than 97%
Runtime: 24 ms, faster than 97.76% of C++ online submissions for Unique Email Addresses.\nMemory Usage: 14 MB, less than 26.19% of C++ online submissions for Un
Runtime: 24 ms, faster than 97.76% of C++ online submissions for Unique Email Addresses.\nMemory Usage: 14 MB, less than 26.19% of C++ online submissions for Unique Email Addresses.\n\n```\nint numUniqueEmails(vector<string>& emails) {\n        \n        unordered_set<string> s;\n        for(string email : emails)\n        {\n            string localName = email.substr(0,email.find_first_of(\'@\'));\n            string domain = email.substr(email.find_first_of(\'@\'));\n            \n            if(localName.find(\'+\') != string::npos)\n                localName.erase(localName.find_first_of(\'+\'));\n            \n            localName.erase(remove(localName.begin(), localName.end(), \'.\'), localName.end());\n            s.insert(localName+domain);\n        }\n        \n        return s.size();\n    }
['C']