OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Data Modeling

13. Meeting Scheduler

Medium

A room calendar refuses meetings that start the moment another ends. Fix it, then add earliest-slot search, sorted agendas and all-or-nothing batch reservations.

50 minute budget54.0% acceptancedebugging · intervals · scheduling

How this problem works

A small TypeScript library with a bug. Part 1: make the failing tests pass without touching tests/. Parts 2 to 4 unlock in order as each part's public tests pass. In a mock interview the product owner asks for a plan before each part, and the grader reads your answer.

  1. 1Fix the overlap check so back-to-back meetings book
  2. 2Earliest slot
  3. 3Sorted bookings
  4. 4Atomic reservations

Part 1: Fix the overlap check so back-to-back meetings book

  1. 01Organisers report that a room cannot be booked for the slot right after an existing meeting: the calendar reports a conflict even though nothing is in the room at that time.
  2. 02Meetings that genuinely share time must still be rejected, including an identical interval and a meeting that sits inside another.
  3. 03The room view that draws adjacent meetings as one block must keep working exactly as it does today.

What the hidden tests check in Part 1

  • A meeting inside an existing one is still rejected.
  • A chain of three meetings that each start when the previous ends all book.
  • A zero-length or backwards meeting is rejected with a RangeError.
  • Rooms never see each other's bookings.

Hints for Parts 2 to 4 appear in the workspace as each part unlocks.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.