Java | 2-3 Lines | Sorting
Observations\nIf two numbers are equal, low is 0. We\'ll use this to remove low from consideration \nThere are three possibilities to minimize score:\n1. Set le
**Observations**\nIf two numbers are equal, low is 0. We\'ll use this to remove `low` from consideration \nThere are three possibilities to minimize score:\n1. Set least two elements as third least\n2. Set greatest two elements as third greatest\n3. Set least to second least and greatest to second greatest\n\n```\nclass Solution\n{\n    public int minimizeSum(int[] nums)\n    {\n        Arrays.sort(nums);\n        return Math.min(Math.min(nums[nums.length-1]-nums[2],nums[nums.length-3]-nums[0]),nums[nums.length-2] - nums[1]);\n    }\n}\n```\nReadable:\n```\nclass Solution\n{\n    public int minimizeSum(int[] nums)\n    {\n        Arrays.sort(nums);\n        int n = nums.length;\n        return Math.min(Math.min(nums[n-1]-nums[2] , nums[n-3]-nums[0]), nums[n-2] - nums[1]);\n    }\n}\n```
['Java']