My Java Solution
\nclass Solution {\n    public int minDifference(int[] nums) {\n        if (nums.length < 5)\n            return 0;\n        Arrays.sort(nums);\n        int res
```\nclass Solution {\n    public int minDifference(int[] nums) {\n        if (nums.length < 5)\n            return 0;\n        Arrays.sort(nums);\n        int result = Integer.MAX_VALUE;\n        for (int i=0; i<4; i++) {\n            result = Math.min(result, nums[nums.length-4+i] - nums[i]);\n        }\n        return result;\n    }\n}\n```
['Array', 'Sorting', 'Java']