C++| Easy to understand
\nvector<int> findLonely(vector<int>& nums) {\n        map<int,int> mp;\n        for(int i=0;i<nums.size();i++){\n            mp[nums[i]]++;\n        }\n       
```\nvector<int> findLonely(vector<int>& nums) {\n        map<int,int> mp;\n        for(int i=0;i<nums.size();i++){\n            mp[nums[i]]++;\n        }\n        vector<int> ans;\n        for(int i=0;i<nums.size();i++){\n            if(mp[nums[i]-1]==0 and mp[nums[i]+1]==0 and mp[nums[i]]==1) ans.push_back(nums[i]);\n        }\n        return ans;   \n    }\n```
['Array']