✔️  Easy C++ || 97% Faster || 70% Space || Sliding Window
\nint minimumDifference(vector<int>& nums, int k) {\n    sort(nums.begin(),nums.end());\n    int ans = 100000;\n    for(int i=k-1;i<nums.size();++i)\n        an
```\nint minimumDifference(vector<int>& nums, int k) {\n    sort(nums.begin(),nums.end());\n    int ans = 100000;\n    for(int i=k-1;i<nums.size();++i)\n        ans = min(ans, nums[i]-nums[i-k+1]);\n    return ans;\n}\n```
['C', 'Sliding Window', 'Sorting', 'C++']