Problem 1984 · Easy

Minimum Difference Between Highest and Lowest of K Scores

Choose k scores with the smallest possible spread between highest and lowest. The visual sorts the scores and slides a window of length k across them.

Open the interactive visualisation