Design a Meeting Room Scheduler
Asked at Uber · Coding Questions · Difficulty: Medium · Last asked May 10, 2026
Build a meeting-room booking system for a fixed list of rooms. A booking asks for the time range `[start, end)`; the system puts it in the first room that is free for the whole range, can cancel a booking, and can list the most recent bookings. Ranges are half-open, so a meeting that ends at 10 and one that starts at 10 do not conflict.
Loading the problem…