Rooms, weekly recurring bookings, and conflict detection across UTC offsets.
55 minute budget34.2% acceptanceintervals · recurrence · time zones
Requirements
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.
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.
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.
04GET /rooms/:id/bookings?from=&to= expands series and returns every occurrence overlapping the window, in chronological order, with start and end in UTC.
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.