Easy Approach || C++✅
Code\n\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums)\n    {\n        int n = nums.size();\n        \n        sort(nums.begin(), nums.end())
# Code\n```\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums)\n    {\n        int n = nums.size();\n        \n        sort(nums.begin(), nums.end());\n        \n        int ans = min({nums[n - 1] - nums[0], nums[n - 1] - nums[2], nums[n - 3] - nums[0], nums[n - 2] - nums[1]});\n        \n        return ans;\n    }\n};\n```
['Sorting', 'C++']