Roblox logoRoblox
CodingMembers

Maximize Distance to Closest Person (LeetCode 849)

Members only

Given a row of occupied and empty seats, choose an empty seat that maximizes distance to the closest occupied person.

SWE
array
two-pointer
easy
Frequency
Single report
Last asked
2025-12-23
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...