← Adobe questions
CodingEasy to Medium

Minimize the Maximum Difference Between Heights

Filed under Adobe · Also reported at Goldman Sachs, Nokia

Given an array representing tower heights and a positive integer k, modify each height by either adding or subtracting k (each tower must be modified exactly once). Minimize the difference between the…

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 Adobe questions

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