โ† Accenture questions

Minimize Maximum Difference of K Numbers

Filed under Accenture

Given an array of integers and an integer K, select K numbers from the array such that the difference between the maximum and minimum values among the chosen K numbers is minimized.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.