Array
1984. Minimum Difference Between Highest and Lowest of K Scores
Given nums and k, pick k elements minimising the difference between the largest and smallest chosen. Return that minimum difference. After sorting, the optimal k elements are always k consecutive…
Loading…