Object-oriented design interview questionMedium
Uber

Design a Meeting Room Booking System

Design a class-level system for booking meeting rooms: register a room, book a meeting given a start time and duration, and cancel an existing meeting with correct conflict detection.

1. Problem Statement

Design a meeting room booking system: an admin can add a room to the system, any user can book a meeting in a room given a start time and duration (which must not overlap an existing booking in that room), and a booking can be cancelled to free its time slot.

2. Live Coding Format

Work in the provided coding workspace while explaining your decisions to the live interviewer. Validation may use inline tests, examples, comments, or a verbal walkthrough.

3. Key Focus Areas

  • 1
    Room/Booking entity modeling
  • 2
    Interval-overlap conflict detection
  • 3
    Efficient free-room/free-slot queries
  • 4
    Add/book/cancel API design

4. What Strong Candidates Should Demonstrate

  • Model rooms and bookings so overlap/conflict checks are correct and efficient.
  • Keep room-management and booking-conflict logic in cohesive, well-scoped classes.
  • Handle add/book/cancel as a small, clean public API.
  • Validate scheduling correctness with concrete interval examples, run or traced by hand.

Want interactive feedback?

Practice this problem in the live coding workspace while the interviewer probes your clarification, implementation, trade-offs, and validation.

Continue to Dashboard

Core Concepts

Hidden because they name the technique, which a real interviewer would not tell you.

Show core concepts
Object-Oriented DesignInterval SchedulingClass Modeling

Continue preparing

Build a complete software engineer mock interview plan

Related Object-Oriented Design

Design a Multi-Device Smart Home Controller

Design an application that controls multiple smart-home device types (e.g., fan, TV) supporting generic ON/OFF commands common to all devices plus device-specific commands, extensibly.

Related Object-Oriented Design

Design a Movie Ticket Seat Booking System

Design a multi-theater ticket booking system where users search movies/showtimes, hold specific seats from a shared seat map, and confirm the hold before it expires, with correctness under concurrent booking attempts.

Related Object-Oriented Design

Design an Online Shopping System

Design an online shopping domain model covering the product catalog, SKU inventory, shopping cart, order lines with snapshotted prices, a checkout flow, a payment boundary, and shipment state transitions.

Related Object-Oriented Design

Design a Multi-Floor Parking Lot

Design a parking lot that assigns compatible spots across multiple floors, issues tickets, tracks capacity, and calculates payment when vehicles exit.