OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/CRUD & REST

18. Event RSVPs with a Waitlist

Easy

Events with a capacity: users RSVP, cancel, and wait in line, and a freed seat goes to the next person waiting.

30 minute budget0.0% acceptancecapacity · waitlist · queues

Requirements

  1. 01Create events with a name and a capacity; read an event and edit its capacity.
  2. 02RSVP a user: "going" while seats are free, otherwise "waitlisted" with a 1-based position.
  3. 03Cancel an RSVP; a freed seat goes to someone on the waitlist, and the response says who.
  4. 04List who is going and who is waiting, each in order.
  5. 05400 for invalid input, 404 for an unknown event.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • The order of the waitlist is checked after every cancellation and capacity change.

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.