Minimum Difference Between Highest and Lowest of K Scores
You are given a list of integers representing the scores of students in a test. Each student's score is represented by one integer. Return the minimum difference between the highest and lowest score of any two students who have scored exactly K points.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)