Python
\n# Code\n\nclass Solution:\n    def minimizeSum(self, nums: List[int]) -> int:\n        nums.sort()\n        return min(nums[-2] - nums[1],\n                  
\n# Code\n```\nclass Solution:\n    def minimizeSum(self, nums: List[int]) -> int:\n        nums.sort()\n        return min(nums[-2] - nums[1],\n                   nums[-1] - nums[2],\n                   nums[-3] - nums[0])\n        \n```
['Python3']