Easy Java Solution
\n# Code\n\nclass Solution {\n    public int minimizeSum(int[] nums) {\n        Arrays.sort(nums);\n        int ref=nums[2];\n        int high=nums[nums.length-
\n# Code\n```\nclass Solution {\n    public int minimizeSum(int[] nums) {\n        Arrays.sort(nums);\n        int ref=nums[2];\n        int high=nums[nums.length-1]-ref;\n        int ref2=nums[nums.length-3];\n        int high2=ref2-nums[0];\n        \n        int high3=nums[nums.length-2]-nums[1];\n        return Math.min(Math.min(high,high2),high3);\n    }\n}\n```
['Array', 'Math', 'Java']