← Amazon questions
CodingReported in a candidate post, Aug 2019

Minimize difference by picking one element from K arrays

Filed under Amazon

Given K sorted arrays of size N, select one element from each array such that the difference between the maximum and minimum selected elements 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 Amazon questions

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