AlgoViz

Design a home rental marketplace like Airbnb

hard 60 min

Guests search homes by place and dates, hold some nights, pay, and stay.

Where it shows up

The same pattern appears across everyday software.

  • Hotels

    Rooms of one type are equal, so a counter for each type and night is enough. Deciding which room is left for the desk at check-in.

  • Car hire

    The unit is an hour or a day of one car class at one branch. Cars also move between branches, so availability depends on place and time.

  • Meeting rooms

    The same overlap rule in a small system. One database with an exclusion constraint is the whole design.

  • Campsites

    Opening day brings a rush for a few famous sites. A waiting line in front of the hold protects the database.

  • Tool libraries

    Lending drills by the day: holds, deposits and returns, with a few thousand items and no search cluster.

  • Appointments

    A doctor's slots are fixed units. Holds and reminders matter more than search.