Less Than 10 lines of Code - NO sorting needed🔥🔥🔥
Code\n\nclass Solution {\npublic:\n    int minimumAddedInteger(vector<int>& nums1, vector<int>& nums2) {\n\n        unordered_map<int,int> m1 , m2 , mp;\n      
# Code\n```\nclass Solution {\npublic:\n    int minimumAddedInteger(vector<int>& nums1, vector<int>& nums2) {\n\n        unordered_map<int,int> m1 , m2 , mp;\n        for(int it :nums1) m1[it]++;\n        for(int it : nums2) m2[it]++;\n\n        for(auto [x , c] : m1)\n            for(auto[x2 , c2] : m2) mp[x2-x] += min(c,c2);\n            \n        int ans = INT_MAX;\n        for(auto [d , c] : mp)\n            if(c >= nums2.size()) ans = min(ans,d);\n        \n        return ans;\n    }\n};\n```
['C++']