Maximize Distance to Closest Person
CodingOA, Phone, OnsiteSoftware EngineerReported Sep, 2025
Company question banks are included with the Insider plan.
You are given an array seats where seats[i] = 1 means seat i is occupied and seats[i] = 0 means it is empty. There is at least one empty seat and at least one occupied seat.
Alex wants to sit...