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

11. Booking Calendar with Conflicts

Hard

Rooms, weekly recurring bookings, and conflict detection across UTC offsets.

55 minute budget34.2% acceptanceintervals · recurrence · time zones

Requirements

  1. 01Create rooms and bookings whose start and end are ISO 8601 instants with an explicit UTC offset or Z; compare instants, not wall-clock strings.
  2. 02Weekly recurring bookings bounded by a count or an until date; each occurrence is exactly 7 x 24 hours after the previous one, with the same duration.
  3. 03Reject a booking whose occurrences overlap any occurrence already in the same room with 409 and the conflicting booking id; a rejected booking stores nothing.
  4. 04GET /rooms/:id/bookings?from=&to= expands series and returns every occurrence overlapping the window, in chronological order, with start and end in UTC.
  5. 05Cancel a single occurrence of a series or the whole booking.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • Offsets, boundaries, a 52-week series and cancellations are all exercised against the listing.

4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.

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.