Find the unoccupied seat position with the maximum distance to the nearest occupied seat.
Unlock detailed company stats for this questionUpgrade
Example: seats[] = {'O','U','U','U','O','O'}; the answer is the seat at index 2.
Format · Technical interview.
Also asked as · Find the unoccupied seat with the maximum distance to the nearest occupied seat.
Community answers
No answers contributed by the community yet.
Related questions
Find the year with the maximum population.Find a path from S to T that maximizes the minimum distance to the cat C.Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.Related courses

Course

Course
Course
