Preparing your design workspace

Loading the problem and your saved attempt…

Design and Implement a Meeting-Room Scheduler

Model conflict-free booking for one room, then extend the same design to multiple rooms.

For this exercise, assume employees book meetings in a single in-memory room calendar. A meeting has a unique ID, organizer ID, title, start time, and end time. Intervals are half-open [start, end), start must be earlier than end, and two meetings may touch at a boundary but may not overlap.

The system supports booking, cancelling by meeting ID, looking up a meeting, and listing meetings in chronological order. Booking a duplicate ID or an overlapping interval fails without changing existing state; cancelling an unknown meeting returns NotFound.

Design the objects, responsibilities, interfaces, and interactions, then implement the bounded book and cancel operations. As a follow-up, extend the design to multiple registered rooms so a request may name a room and conflicts remain room-local.

Recurrence, attendee availability, notifications, permissions, persistence, and distributed coordination are outside scope.