Design Hotel Reservation
Reports of this round describe a whiteboarding session that deliberately mixes high-level and low-level design, with the follow-ups arriving as separate tabs in the HackerRank portal. So expect to draw the architecture and then get pulled down into the schema, the exact query that reserves a room, and what happens when two guests race for the last one. Read the prompt for its shape before drawing anything. Search traffic dwarfs booking traffic. A guest searches many times and books at most once. So this is a read-heavy system with a small, precious write path. The write path barely moves. It just cannot be wrong.
The word that changes everything here is "providers." You are building an aggregator, closer to a travel marketplace, pulling inventory from many external systems and reselling it. That means the real source of truth for whether a room is free often sits inside someone else's API, not your database. A clean single-database booking design is only half the answer. The other half is how you stay fast and correct on top of inventory you can see but do not own.
UPDATE that prevents double-booking, and explain why it is safe, is the one who moves forward. Treat the data model as a first-class deliverable.- 1 diagram
- 5 sections
- about 40 min
Premium lessonWayfair interview guide
These took digging.
What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.
100 companies. Checked every month.
Unlock all 100 companies$49 a year · less than $1 a week · 30-day money-back guarantee
Wayfair interview guideKnow what Wayfair asks before you walk in.
19 coding · 3 system design · 24 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.