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.
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.
1Fix the overlap check so back-to-back meetings book
2Earliest slot
3Sorted bookings
4Atomic reservations
Part 1: Fix the overlap check so back-to-back meetings book
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.
02Meetings that genuinely share time must still be rejected, including an identical interval and a meeting that sits inside another.
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.