← 返回 atlassian 的题目列表Tennis Court Booking Plan
类型:online_judge
Implement a function that given a list of tennis court bookings with start and finish times, returns a plan assigning each booking to a specific court, ensuring each court is used by only one booking at a time and using the minimum number of courts with unlimited courts available. Follow-up: Need maintenance time after each assignment.
Example
Input
[Booking(1, 4), Booking(2, 5), Booking(3, 6)]