Minimize the largest selected value across nonadjacent positions
Company: Microsoft
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Online Assessment
Overview: Choose at least k nonadjacent array positions while minimizing the largest selected value. Preserve original adjacency and reason about threshold feasibility, greedy selection, and cases where eligible positions cluster.
Read the full Microsoft Software Engineer interview experience this question came from