Learn the booking service
Code questionsEasyPython · FastAPIData integrityAPI30 min
Learn the booking service
Goal
You've just joined the team that owns this service: a small FastAPI + SQLite API for booking the office meeting rooms (Orion, Lyra and Vega). Before you pick up your first ticket, your lead wants to be sure you understand how it really works.
Answer the questions in the Answers panel. You can use the AI assistant, read the code, run the tests and call the API from the terminal or the preview; your answers are checked against how the code actually behaves, not against what the README or a comment says.
There is nothing to fix and nothing to build. Don't change the code to make an answer come out the way you'd like; answer for the code as it is.
How answers are checked
- Numbers, status codes and file paths are checked exactly (case, spaces and quotes don't matter).
- For a code location, give the file and the function, like
path/to/file.py:function_name. - For a multiple-choice question, pick one option.
- Short free-text answers are compared with the answer key; if yours is worded differently, a reviewer reads it, so explain briefly and precisely.
- Every answer in the key was produced by running this exact code. If you're unsure, run it.
© AICodingRound. Ticket text for practice on this site; see Terms.
How it works
- 1Fix the problemin a real codebase.
- 2Use your ownAI, or none.
- 3Submit, then answera few short questions.
- 4Get your gradeand feedback.
Guides that use this problem
All guidesMore on the booking service
View allBack-to-back bookings rejectedA meeting ending at 10:00 blocks one starting at 10:00.Bug huntEasyA cancelled meeting still blocks its room hourA room can't be booked again after a cancellation, though it shows as free.Bug huntMediumTwo people were confirmed for the same room at the same timeTwo teams were confirmed for the same room at 10:00.Bug huntMedium
Related problems
View allBook a room every weekAdd bookings that repeat every week.Feature buildMediumReview the AI's retry PRAn AI wrote a retrying HTTP client. Find the flaws.AI PR reviewMediumAfter one failed customer call, every customer list for that merchant errorsAfter one failed call, one merchant's customer and event lists error out.Bug huntMedium