Maximize Distance to Closest Person
CodingOA, Phone, OnsiteSoftware EngineerReported Sep, 2025
Examples
Example 1:
Input: seats = [1,0,0,0,1,0,1]
Output: 2
Explanation:
Example 2:
Input: seats = [1,0,0,0]
Output: 3
Explanation:
Example 3:
Input: seats = [0,1]
Output: 1