CodingMedium
Allocate seats to maximize minimum distance
Filed under PhonePe
The question
Process M queries to allocate seats in a row of N spaces (given empty and occupied spaces) such that the distance to the closest person is maximized.
No write-up yet. Related questions below have one.
Related PhonePe questions
Collected from public candidate posts and coding forums. Updated Nov 2026.