CPP || HASHMAP || EASY UNDERSTANDING || 4 LINE CODE
\nclass Solution {\npublic:\n    vector<int> findLonely(vector<int>& nums) {\n        \n        map<int,int>m;\n        for(auto x : nums)m[x]++;\n        vecto
```\nclass Solution {\npublic:\n    vector<int> findLonely(vector<int>& nums) {\n        \n        map<int,int>m;\n        for(auto x : nums)m[x]++;\n        vector<int>ans;\n        for(auto x : m)if(x.second == 1 and m.find(x.first+1)==m.end() and m.find(x.first-1)==m.end())ans.push_back(x.first);\n        return ans;\n    }\n};\n```
['C', 'C++']