C++||Most Easy Solution with Explanation
\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums) {\n        int n=nums.size();\n        sort(nums.begin(),nums.end());\n        //increase th
```\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums) {\n        int n=nums.size();\n        sort(nums.begin(),nums.end());\n        //increase the smallest two numbers\n        int a=nums[n-1]-nums[2];\n        //decrease the two largest nos\n        int b=nums[n-3]-nums[0];\n        //increase the smallest no and decrease the largest no\n        int c=nums[n-2]-nums[1];\n        return min({a,b,c});\n    }\n};\n```
[]