ONE LINE CODE || C++
\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums) {\n        sort(nums.begin(),nums.end());\n        return min({nums[nums.size()-1]-nums[2],n
```\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums) {\n        sort(nums.begin(),nums.end());\n        return min({nums[nums.size()-1]-nums[2],nums[nums.size()-3]-nums[0],nums[nums.size()-2]-nums[1]});\n    }\n};\n```
['Math', 'Greedy', 'C', 'Sorting', 'C++']