Easy C++
\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        set<string> s;\n        for(auto e : emails)\n        {\n            str
```\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        set<string> s;\n        for(auto e : emails)\n        {\n            string mail="";\n            for(char c : e)\n            {\n                if(c==\'+\' || c==\'@\')\n                    break;\n                if(c==\'.\')\n                    continue;\n                mail+=c;\n            }\n            mail+=e.substr(e.find(\'@\'));\n            s.insert(mail);\n        }\n        return s.size();\n    }\n};\n```
[]