CPP | Sorting + Greedy
Code

# Code
```cpp []
class Solution {
public:
    int minimizeSum(vector<int>& nums) 
    {
        sort(nums.begin(),nums.end());
        int n=nums.size();

        int res=nums[n-1]-nums[2];
        res=min(res, nums[n-3]-nums[0]);
        res=min(res,nums[n-2]-nums[1]);
        return res;
    }
};
```
['C++']