C++✅✅ | Faster🧭 than 85%🔥| Hashing🆗 | Very Easy Code | Clean code |
\n\n# Code\n# PLEASE DO UPVOTE!!!!!\n\n\nclass Solution {\npublic:\n    int singleNonDuplicate(vector<int>& nums) {\n\n      unordered_map<int,int>mpp;\n      f
\n\n# Code\n# PLEASE DO UPVOTE!!!!!\n```\n\nclass Solution {\npublic:\n    int singleNonDuplicate(vector<int>& nums) {\n\n      unordered_map<int,int>mpp;\n      for(auto i:nums) mpp[i]++;\n      \n      for(auto it:mpp)\n        if(it.second==1) return it.first;\n        \n      return -1;\n    }\n};\n\n\n```
['C++']