Easy To Understand C++ Solution || (Using Map)✅✅
Code\n\nclass Solution {\npublic:\n    bool isPossibleToSplit(vector<int>& nums) {\n        int n=nums.size();\n        unordered_map<int,int> mp;\n        if(n
# Code\n```\nclass Solution {\npublic:\n    bool isPossibleToSplit(vector<int>& nums) {\n        int n=nums.size();\n        unordered_map<int,int> mp;\n        if(n%2!=0){\n            return false;\n        }\n        for(int i=0;i<n;i++){\n            mp[nums[i]]++;\n        }\n        for(auto a: mp){\n            if(a.second>2){\n                return false;\n            }\n        }\n        return true;\n    }\n};\n```
['Hash Table', 'C++']