← Amazon questions

Seat allocation with maximum distance to others

Filed under Amazon

Given a bench of `n` seats with some people already seated, find the optimal seat for a new person such that their distance to the closest person is maximized. Extend the approach to handle placing…

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.