C++ // 80% // using std::unordered_map
class Solution \n{\n    public:\n    \n    int numUniqueEmails(std::vector& e) \n    {\n        std::unordered_map ma;\n        \n        for(size_t i = 0; i < 
class Solution \n{\n    public:\n    \n    int numUniqueEmails(std::vector<std::string>& e) \n    {\n        std::unordered_map<std::string, int> ma;\n        \n        for(size_t i = 0; i < e.size(); i++)\n        {\n            auto pos = e[i].find(\'@\');\n            \n            const std::string p2 = e[i].substr(pos);\n            \n            std::string p1 = e[i].substr(0, pos);\n           \n            p1.erase(std::remove(p1.begin(), p1.end(), \'.\'), p1.end());\n            \n            pos = p1.find(\'+\');\n            \n            if(pos != std::string::npos)\n            {\n                p1 = p1.substr(0, pos);\n            }\n            \n            ma[p1+p2] = 0;\n        }\n        \n        return ma.size();\n    }\n};
['C', 'C++']