← 返回 uber 的题目列表Meeting Room Scheduler Design
类型:online_judge
Design a meeting room scheduler. Given a list of meeting rooms, implement a function to schedule a meeting. The function should take the meeting's start time and end time as input, and return whether the booking was successful, along with the ID of the successfully booked meeting room. Make sure the function can be used as an API call by other services, focusing on practicality and performing input validity checks.
Example
Input
3
1 2 3
1 3