← Google questions

Max Distance Seating

Filed under Google

Given a bench represented by an array of size N where some seats are occupied, determine the seat index for a new person that maximizes the minimum distance to any existing person.

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

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