3 liner | Easy C++ code 🔥🔥🔥
Just check three cases\n\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums) {\n        int n = nums.size();\n        sort(nums.begin(), nums.end
Just check three cases\n```\nclass Solution {\npublic:\n    int minimizeSum(vector<int>& nums) {\n        int n = nums.size();\n        sort(nums.begin(), nums.end());\n        return min({nums[n-1]-nums[2], nums[n-3]-nums[0], nums[n-2]-nums[1]});\n    }\n};\n```
['C']