← 返回 uber 的题目列表Design Meeting Scheduler
类型:online_judge
Design a meeting scheduling program. Your task is to write a program that reads a series of meeting requests, each including a start and end time. You must find an available meeting room for each request, and each room can host only one meeting at any given time. Provide complete code to solve this problem. Assume the input format is a list of requests, each request being [start, end]. The output should be a dictionary with the room number as the key and the list of meetings assigned to that room as the value. Time and room numbers are integers.
Example
Input
[ [0, 30], [5, 10], [15, 20] ]