You are given a list of tennis court bookings. Each booking has a start time and an end time.
Return an assignment plan that:
1..k
).
You may return:
assignment[i]
is the court used by booking
i
).
After a booking ends, the court is unavailable for a fixed maintenance time M (e.g., minutes). That means a booking [s2, e2] can reuse the same court after booking [s1, e1] only if:
s2 >= e1 + M
Update your approach to support this requirement.
n
).