C++ | O(nlogn)
```\nint minDifference(vector& nums) {\n        int n = nums.size();\n        if(n < 5)\n            return 0;\n        sort(nums.begin(), nums.end());\n       
```\nint minDifference(vector<int>& nums) {\n        int n = nums.size();\n        if(n < 5)\n            return 0;\n        sort(nums.begin(), nums.end());\n         int  res = min({nums[n-4]-nums[0], nums[n-1]-nums[3], nums[n-3]-nums[1], nums[n-2]-nums[2]});\n        return res;\n    }
['C']