stringstream and map : short and easy solution
\nclass Solution {\npublic:\n    vector<string> uncommonFromSentences(string A, string B) {\n        unordered_map<string, int> m;\n        stringstream sa(A);\
```\nclass Solution {\npublic:\n    vector<string> uncommonFromSentences(string A, string B) {\n        unordered_map<string, int> m;\n        stringstream sa(A);\n        stringstream sb(B);\n        \n        string wa;\n        string wb;\n        \n        while(sa>>wa){\n            m[wa]+=1;\n        }\n        \n        while(sb>>wb){\n            m[wb]+=1;\n        }\n        vector<string> res;\n        for(auto it:m){\n            if(it.second==1){\n                res.push_back(it.first);\n            }\n        }\n        return res;\n    }\n};\n\n\n```
['C', 'C++']