Object-Oriented Programming · Uber · Medium
Problem Create a scheduler for a fixed collection of meeting rooms. Each room is represented by a unique room ID, such as ["roomA", "roomB", ...]. Implement the MeetingScheduler class: MeetingScheduler(List roomList) creates the scheduler using the supplied room IDs. String schedule(int start, int end) attempts to reserve one room for the half-open time interval from start to end. When more than one room can host the meeting, choose the room whose ID is lexicographically…
Checking your access…