simple and easy understanding c++ code
\ncpp []\nclass Solution {\npublic:\n    vector<vector<int>> findDifference(vector<int>& nums1, vector<int>& nums2) {\n        int n=nums1.size();\n        int 
\n```cpp []\nclass Solution {\npublic:\n    vector<vector<int>> findDifference(vector<int>& nums1, vector<int>& nums2) {\n        int n=nums1.size();\n        int m=nums2.size();\n        vector<vector<int>>arr1(2);\n        unordered_set<int>a(nums1.begin(),nums1.end());\n        unordered_set<int>b(nums2.begin(),nums2.end());\n        for(int i:a){\n            if(b.find(i)==b.end()){\n                arr1[0].push_back(i);\n            }\n        }\n        for(int j:b){\n            if(a.find(j)==a.end()){\n                arr1[1].push_back(j);\n            }\n        }\n        return arr1;\n        \n    }\n};\n```
['C++']