You are given an integer array nums representing the scores of students and an integer k.
Choose the scores of any k students from nums such that the difference between the highest score and the lowest score among the chosen k scores is minimized.
Return the minimum possible difference.
Constraints:
k nums.length
nums[i]
You are given an integer array nums representing the scores of students and an integer k.
Choose the scores of any k students from nums such that the difference between the highest score and the lowest score among the chosen k scores is minimized.
Return the minimum possible difference.
Constraints:
k nums.length
nums[i]