C++ beginner friendly
\nclass Solution {\npublic:\n    int minimumDifference(vector<int>& nums, int k) {\n        \n        sort(nums.begin(),nums.end(), greater<int>());\n        \n
```\nclass Solution {\npublic:\n    int minimumDifference(vector<int>& nums, int k) {\n        \n        sort(nums.begin(),nums.end(), greater<int>());\n        \n        int i=0,j=k-1;\n        int mini=INT_MAX;\n        int res=0;\n        while(j<nums.size())\n        {\n            mini=min(mini,nums[i]-nums[j]);\n            \n            j++;\n            i++;\n        }\n        return mini;\n    }\n};\n```
['C', 'C++']