Rust solution
\nimpl Solution {\n    pub fn minimum_difference(mut nums: Vec<i32>, k: i32) -> i32 {\n        nums.sort_unstable();\n        nums.windows(k as usize)\n        
```\nimpl Solution {\n    pub fn minimum_difference(mut nums: Vec<i32>, k: i32) -> i32 {\n        nums.sort_unstable();\n        nums.windows(k as usize)\n            .map(|pair| pair[(k - 1) as usize] - pair[0])\n            .min()\n            .unwrap()\n    }\n}\n```
['Sliding Window', 'Rust']