This document describes a coding challenge problem involving seating arrangements in a library reading room while maintaining social distancing.
The key details are:
- Seating is assigned based on keeping the greatest distance from the nearest occupied seat. Empty seats are prioritized over more distant occupied seats.
- An example seating arrangement is provided over time as people arrive and leave.
- The task is to calculate how long the preferred seat of the problem author is available.
The problem is modeled as a simulation over discrete time steps to track the seating status and calculate the desired result. The time complexity is analyzed as O(T*N) where T is the number of time steps and N is the number of reservations.