InterviewLegend

Design a Parking Lot

Frequently asked
Alex Chen24 min readGuide updated
In this lesson
  • Model the lot as classes: levels, sized spots, vehicles, tickets, a pricing rule, and the gates
  • Turn the classes into a service with an API, a spot inventory and a ticket store
  • Go deep on spot allocation, two cars racing for one spot, pricing changes, the owner dashboard and offline gates

Understanding the problem

The prompt

Design something like a parking lot. Cars come in through an entry gate, take a ticket, park, and pay on the way out. Show the main objects, then how you would run it as a service.

This is the newest design prompt with a date on it at Expedia. A US software engineer interviewed in September 2026 and described a loop of three rounds on one day: two LeetCode rounds and a system design round where the ask was a parking lot. That candidate called the day smooth and accepted the offer. They didn't write down any follow-ups, so nobody knows how far that interviewer pushed. Two older rounds fill in the picture. An SDE-2 onsite in 2021 had a round titled "System Design + OOD" with a parking garage system as the problem. And an SDE1 onsite in Bellevue in 2019 asked for a system for parking lot owners, where an owner logs in and sees capacity and how much money the lot has made.

Put those three together and the safe plan is clear. Open with the object model, because a parking lot is the classic object-oriented design problem and the 2021 round named OOD outright. Then step back and show the service around it, because a round labelled system design wants to see storage, an API and what breaks under load. Keep the owner dashboard ready as the follow-up with a real Expedia history. The scale is small. Even a chain of a thousand garages sends about fifty gate events a second. What makes this hard is correctness: one spot can go to one car, the fee must be right to the cent, and the gate has to open even when the network doesn't.

The Expedia angle
The 2026 round sat between two LeetCode rounds on the same day. You arrive tired, and a parking lot feels easy enough to coast. Use the first five minutes to agree on scope out loud, then build in visible steps, so the interviewer sees structure instead of a list of classes appearing.

Requirements

Functional requirements

Ask before you draw. How many levels? Which vehicles, and which spot sizes? Does the system assign an exact spot, or just let the car in and count? How do people pay, and when? Is this one garage or a company running many? Each answer changes a class or a table, so the questions aren't filler. If the interviewer shrugs, propose a scope and say it. A garage has several levels. Spots come in three sizes: compact, regular and large. Motorcycles fit any spot, cars fit regular or large, and trucks fit only large. A driver takes a ticket at entry, pays by the hour at exit, and the gate opens once the fee is paid.

In scope

  • Let a vehicle in only if a spot that fits it is free
  • Issue a ticket at entry and close it at exit
  • Charge by the hour, with rates per vehicle type
  • Show free spots per level and size on the boards at entry
  • Owners see capacity and revenue for their lots

Below the line (call it out, then skip)

  • Reservations and monthly passes, unless asked
  • Electric vehicle charging and its billing
  • Valet parking and attendants moving cars
  • Number plate recognition as a computer vision problem

Non-functional requirements

Correctness comes first, and it has two parts. A spot must never be handed to two vehicles, and money must never be counted twice or lost. Both point at the same design choice later: claiming a spot and recording a payment each happen as one atomic write. The gate must work when the network doesn't. A barrier that stays shut because a server in another city timed out is a line of angry drivers. So the gates keep enough state to let cars in and out on their own for a while, and catch up later. Latency is easy by web standards, though people feel it. A driver waits at the barrier, so entry and exit should answer in well under a second. The owner dashboard can lag by a minute or so without anyone minding. Ask for numbers, and propose some if there are none. Say a company runs 1,000 garages of about 500 spots each, and each spot turns over three times a day.

  • Spots: 500,000. 1,000 garages times about 500 spots each. Small enough that the whole inventory fits in one database.
  • Visits a day: 1.5 million. Each spot turns over three times a day. Each visit is an entry, an exit and a payment, so about 4.5 million events a day, around 52 a second.
  • Morning rush: about 70 entries a second. If a third of the day's arrivals land in two hours, that is 500,000 entries over 7,200 seconds.
  • Ticket history: about 110 GB a year. 1.5 million tickets a day at roughly 200 bytes each is 300 MB a day.

The object model, in words

Start with the nouns from the requirements and keep only the ones that have behavior or hold state. Eight classes cover it, and each has one job.

1

ParkingLot

The garage as a whole. It holds its levels, finds a spot for an arriving vehicle, and keeps the open tickets. It is the one place entry and exit go through.

2

Level and Spot

A level holds spots and keeps a count of free spots per size, so a full level answers fast. A spot knows its size, its level, and whether a vehicle is in it.

3

Vehicle

A plate and a type. The type decides which spot sizes fit. Motorcycle, car and truck are values of one type, since they differ only in size.

4

Ticket

One visit. It records the plate, the spot, the entry time, and later the exit time and fee. Starts open, becomes paid, then closed when the car leaves.

5

PricingRule

Turns a ticket into a fee. It sits behind an interface, so an hourly rate can become a daily cap or an evening flat rate without touching the lot.

6

EntryGate and ExitGate

The devices. Entry asks the lot for a spot and prints a ticket. Exit asks for the fee, takes payment and lifts the barrier.

Two choices are worth defending out loud. Make vehicle type a plain value and skip the class hierarchy. A Car subclass and a Truck subclass would carry no behavior of their own, and a new type would mean new code. A table of which sizes fit each type does the same job and is one line to extend. The pricing rule sits outside the ticket. If the ticket computed its own fee, every pricing change would edit the ticket class. Behind an interface, a new rule is a new class and the rest of the design never notices. That's the open-closed principle, and the interviewer will be listening for it here.

A class skeleton for the lot shows the shape. Three methods, and everything else is private state.

python
class ParkingLot:
levels: list[Level]
open_tickets: dict[str, Ticket] # plate -> ticket
def enter(self, vehicle, now) -> Ticket | None: ...
def exit(self, plate, now, payment) -> Receipt: ...
def free_spots(self) -> dict[str, int]: ...

The pricing rule is the smallest interface in the design and the one most likely to change. Each rule takes a ticket and the exit time and returns cents.

python
class PricingRule(Protocol):
def fee_cents(self, ticket, exit_time) -> int: ...
class HourlyRate: # per started hour, by vehicle type
rates: dict[str, int] # "car" -> 300 cents

The diagram below shows how the classes connect. Blue is a device or a person outside the code, violet is a class with logic, and green is a class that mostly holds state. Tap any box for what it does.

Loading diagram...

Entry, exit and the fee

Entry. The entry gate calls the lot with the vehicle. The lot refuses a plate that already has an open ticket, since the same car can't be inside twice. It walks the sizes that fit, smallest first, and takes the first level with a free spot of that size. It marks the spot taken, drops that level's free count by one, opens a ticket with the entry time, and returns it. If nothing fits, it returns nothing and the barrier stays down.

Exit. The exit gate calls the lot with the plate and the time. The lot finds the open ticket and asks the pricing rule for the fee. After payment goes through, it records the fee on the ticket, frees the spot, and raises that level's free count again. A plate with no open ticket gets an error and a call button for an attendant, which covers lost tickets.

The fee. Keep money in whole cents, never floating point, because 0.1 plus 0.2 isn't 0.3 in binary and a revenue report would drift. Charge per started hour with a one-hour minimum, and say that rule out loud. A stay of 61 minutes is two hours, a stay of 0 minutes is one.

python
minutes = exit_time - ticket.entry_time
hours = max(1, ceil(minutes / 60))
return hours * rates[ticket.vehicle_type]
The Expedia angle
The 2021 Expedia round was titled "System Design + OOD", and an India LLD round in 2025 asked for the classes written out in real code. If your round is labelled system design and the interviewer wants classes, write the skeletons. If they want boxes and databases, the next section is that view.

The service view: API

Now step back from one garage. A company running many lots needs the same logic behind an API that the gates, the payment kiosks and an owner's browser can all call. The calls map almost one to one onto the class methods. Entry and payment both change state, so both take an idempotency key, a value the caller picks so that a retried call does nothing new.

The interface
Request
Entry gateParking servicelet a vehicle in
POST /lots/{lot_id}/entries { plate, vehicle_type, idempotency_key }
ticket_id, level, spot_size, or lot full
A retried entry with the same key returns the same ticket and claims no second spot.
Exit gateParking serviceprice an open ticket
GET /tickets/{ticket_id}/fee?exit_time=...
fee_cents, rate_card_id
Exit gateParking servicepay and leave
POST /tickets/{ticket_id}/payment { amount_cents, card_token, idempotency_key }
paid or declined
The ticket id is the key the payment provider sees, so one visit can only be charged once.
OwnerOwner dashboard APIcapacity and money made
GET /owners/me/lots/{lot_id}/summary?from=...&to=...
free and total spots by size, revenue_cents by day

The architecture end to end

The classes become one service and two stores. The lot's spots and free counts turn into a spot inventory table. Tickets and payments turn into a ticket store. Everything the owner wants to see is derived from events and kept apart from the hot path. In the diagram, blue is a person or device outside our code, violet is a service we run, amber is a stream that moves events, and green is stored state. Tap any box for details.

Loading diagram...

1) A vehicle arrives. The Entry gate sends the plate, the vehicle type and a fresh idempotency key to the Parking service. The service looks for a size that fits, smallest first, and tries to claim one in the Spot inventory with a single conditional update. If that works, it opens a ticket in Tickets and payments in the same transaction and returns the ticket and the level. The whole trip is a few milliseconds of database work, which leaves plenty of room inside the one-second budget at the barrier. How the claim stays safe when two gates race is a deep dive.

2) A vehicle pays and leaves. The Exit gate scans the ticket or reads the plate and asks for the fee. Pricing uses the rate card recorded on the ticket at entry, and the answer comes back in cents. Next the gate posts the payment. Our service charges the card through the Payment provider, marks the ticket paid, frees the spot and closes the ticket. A declined card leaves the ticket open and the barrier down. Pricing has its own dive, and so does a gate that can't reach the service.

3) The owner checks in. Every entry, payment and exit also writes an event to an outbox table in the same transaction, and a relay publishes it to the Event stream. The Rollup worker adds each one into hourly totals in Owner stats. When an owner logs in, the Owner dashboard API reads live free counts from the inventory and revenue from the totals. Nothing the owner does touches the gate path. The dashboard is the follow-up with an Expedia history, so it gets a dive too.

Technology choices

  • The Spot inventory and Tickets and payments live in Postgres. Claiming a spot and opening a ticket must commit together or not at all, which is a transaction. The whole working set is a few gigabytes. Run a synchronous replica, meaning a write isn't confirmed until a second machine has it, so a failover loses no paid ticket.
  • The Parking service is a stateless service in containers behind a load balancer. With no state of its own, a crashed instance loses nothing and a deploy interrupts nobody. Run instances in at least two zones, since a dead service means barriers that don't lift.
  • The Event stream is Kafka, or Kinesis if the team wants it managed. It's a log the dashboard and later consumers, like fraud checks, can each read at their own pace. Events are written to an outbox table in the main transaction and relayed, so an event can't be lost even if the broker is down.
  • The Rollup worker is a plain consumer. At about 52 events a second there's nothing to tune. It stores the ids of applied events, so a restart that replays the last few minutes adds nothing twice.
  • The Payment provider is Stripe or Adyen behind a thin client with timeouts and retries. Its idempotency key is the ticket id, so retrying a timed-out charge returns the original result.

Name the popular tool, then defend the kind of tool. An interviewer who uses MySQL doesn't care that you said Postgres. They want to hear that the spot claim and the ticket need one transaction.

Potential deep dives

Which spot does the next vehicle get?

This question sounds small and decides how full the garage can get. Take a level with 30 compact spots, 150 regular and 20 large. If motorcycles and cars grab large spots whenever they see one first, a truck arriving at 9 a.m. can find every large spot gone while compact and regular spots sit empty. The lot isn't full. It just allocated badly.

BadFirst free spot, any size that fits

Approach

Walk the spots in order, level by level, and take the first free one the vehicle fits in. It is a few lines of code and works on a whiteboard with five spots.

Challenges

It strands big vehicles. Motorcycles near the entrance happily take large spots, and the trucks that can only use those spots get turned away. It also scans every spot on every entry, which is fine for 500 spots and silly for a stadium lot with 10,000. And it can't answer "how many large spots are free?" without another full scan.

GoodBest fit by size, then the lowest level

Approach

Keep a free count per level and size. For each arriving vehicle, try the smallest size it fits first. Within that size, take the lowest level with a free spot. Only move up a size when every level is out of the smaller one. Claiming is decrementing one count, and the entry boards read the same counts.

Challenges

It protects large spots well, and with three sizes and a handful of levels it costs a few comparisons. It doesn't name an exact spot, so the driver still hunts on the level. If the business wants "go to spot 3-117", you need a free list of spot ids per level and size, and you pop one off.

The next question is whether the garage assigns exact spots at all. Most real garages don't. They count cars in and out per level and show free counts on signs, and the driver picks any spot. If the interviewer wants assigned spots, the Great tier below adds them without losing the counts.

GreatCounts for admission, a nearest-first heap for assigned spots

Approach

Admit vehicles by the per-size counts from the Good tier, so the barrier decision stays one cheap update. When the garage assigns spots, keep a min-heap of free spot ids per level and size, ordered by walking distance from the lift. Popping gives the nearest free spot, and a freed spot is pushed back. Floor sensors, where the garage has them, report which spot each car took.

Challenges

Drivers ignore assignments. Sensors let you swap the ticket's spot to the real one and fix the heap, and without sensors the counts still stay right, because a car on the level is a car on the level. The heaps live in memory per lot and are rebuilt from the inventory on restart. With 500 spots that takes milliseconds.

Say which rule you picked and what it protects. "Smallest fitting size first, so trucks still find large spots" is the sentence the interviewer wants. The runnable problem at the end of this lesson is this exact rule.

What stops two cars from getting one spot?

A garage with two entry lanes has two gates acting at the same moment. Picture the last free regular spot on level 2. Both gates read "1 free", both decide to claim it, both write "0 free", and two cars now hold one spot. In a single process this happens between threads. In the service it happens between two requests on two machines. Either way the bug is the same gap between checking and claiming.

BadRead the count, then write it back

Approach

Read the free count, check that it's above zero, subtract one, and save it. Each step looks correct on its own.

Challenges

Two requests interleave between the read and the write, and both succeed. The count ends at 0 while two vehicles are inside on one spot, and the next exit pushes it back to 1 for a spot that is still taken. The bug only shows up under load, so it passes every test you'd write by hand. Nobody should propose this, but say why it fails.

GoodOne lock per lot, inside the process

Approach

In the single-garage object model, wrap the find and the claim in one lock on the ParkingLot. Only one gate can be inside that critical section at a time, so check and claim can't be split. Finer locks, one per level and size, let two lanes claim on different levels at once.

Challenges

It's correct only while one process owns the lot. As soon as two service instances can serve the same garage, each has its own lock and they protect nothing from each other. A lock held across a slow call, such as a ticket printer, also stalls every other gate.

The service needs the check and the claim to happen in the database as one step. One conditional update closes the gap. Postgres subtracts only if a spot is free, and returns a row count, which is 1 when it claimed the spot and 0 when it didn't.

sql
UPDATE spot_inventory
SET free = free - 1
WHERE lot_id = $1 AND level = $2 AND size = $3 AND free > 0;
-- 1 row changed: the spot is ours. 0 rows: try the next level or size.
GreatA conditional update, with the ticket in the same transaction

Approach

Run the update above and open the ticket in one transaction. The database locks just that one row while it updates, so two requests for the last spot run one after the other and the second sees zero. If 0 rows change, move to the next level or size. With assigned spots, use the same pattern per spot: set the ticket id only where it's still empty.

Challenges

One row per lot, level and size can get hot in a stadium lot at kickoff. Even 10,000 cars in 90 minutes is under 2 claims a second per lot, far below what one row can take. The real risk is a retry. A gate that times out and resends must not claim twice, which the idempotency key on entry handles.

The Expedia angle
In booking designs, Expedia interviewers keep coming back to two people grabbing the last room. The last parking spot is a smaller version of it. If time allows, point that out and show how the same conditional update would guard a hotel room night.

The handling contention lesson covers locks, conditional writes and when each fits. The hotel booking design uses the same claim on room inventory.

How do prices change without rewriting the lot?

Pricing is where real lots get complicated. An airport garage can charge $3 an hour with a $25 daily cap. A downtown lot runs an early bird rate for cars in before 9 a.m., and weekend prices differ. The owner changes these without telling engineering. A design that hard-codes one rate breaks on the first real customer.

BadAn if-else chain inside the ticket

Approach

Give the ticket a method that checks the vehicle type, the day and the time with a chain of conditions, and returns a price in dollars as a float.

Challenges

Every new rule edits the same method, and every lot shares it, so a downtown change can break the airport. Floats round badly: a day of small fees adds up to a revenue total that's off by cents. And the rule can't be tested on its own, because it is welded to the ticket.

GoodA pricing interface with one class per rule

Approach

The lot holds a pricing rule behind the interface from the object model. Hourly, daily cap and early bird are separate classes, and a cap can wrap another rule: compute the hourly fee, then take the lower of it and the cap. Everything is integer cents. Each rule is tested alone with a handful of entry and exit times.

Challenges

It's clean for engineers, but each new price still needs a deploy. It also has a fairness gap: if the owner raises the rate at noon, a car that came in at 8 a.m. gets charged the new price for its whole stay unless the code says otherwise.

GreatRate cards as versioned data, pinned at entry

Approach

Store prices as rate cards: per lot, per vehicle type, an hourly rate, an optional daily cap and an optional flat window. The rule classes read a card instead of holding numbers. Cards are never edited. A change makes a new version with a start time, and the ticket records the card id it was issued under, so a car pays the price that was posted when it came in.

Challenges

Owners can now change prices from the dashboard with no deploy, and disputes are easy because the ticket names the exact card used. Exit gates cache the current card for their lot to price offline, so a new version has to reach them. Gates check for a new card every minute, and the ticket's card id settles any mismatch.

Rounding deserves a sentence of its own. Agree on "per started hour" or "per 15 minutes" early, and always round in the customer's favor or always against, never sometimes. Write the rule into the card. The interviewer will often hand you a stay of 61 minutes to see which way you go.

Owners log in and see capacity and money made

This is the follow-up with an Expedia history. A 2019 SDE1 round in Bellevue asked for a system where parking lot owners log in and view capacity and money made. It's an old report, so treat it as one interviewer's direction, but it shows where the round can go once the lot works. The two numbers behave differently. Capacity is live: how many spots are free right now. Money made is history: revenue per day or month, over a year or more. Mixing them into one query is where weaker answers go wrong.

BadQuery the ticket table on every page load

Approach

When the owner opens the page, count open tickets for capacity and sum fees over closed tickets for revenue, straight from the ticket table.

Challenges

A busy lot with 1,500 visits a day piles up about 550,000 tickets a year. Summing them on each load is slow, and an owner with twenty lots multiplies it. Worse, these scans run on the same database the gates depend on, so an owner refreshing a report can slow the barrier for a driver.

GoodCounters updated in the same transaction

Approach

Keep a revenue total per lot and day, and bump it in the payment transaction. Capacity is already in the spot inventory. The dashboard reads one inventory row per level and size and a few dozen daily totals.

Challenges

It's fast and exact. But every payment now also updates a shared counter row, so payments in one lot queue up behind each other on it. Every new report, like busiest hours or average stay, needs another counter written on the hot path. The gate path keeps growing for the sake of a screen.

GreatEvents to hourly rollups, capacity read live

Approach

Each entry, payment and exit writes an event to an outbox in its own transaction. The rollup worker reads them and adds into hourly totals per lot: entries, exits and revenue in cents. A year of one lot is 8,760 rows, and a month is at most 744, so any report is a small sum. Capacity still comes live from the inventory.

Challenges

Revenue lags by however far behind the worker runs, usually seconds. The worker must not count an event twice after a restart, so it stores applied event ids with the totals in one transaction. A new report is a new consumer reading the same events, and the gate path never changes.

Then say who sees what. Each lot has an owner id, and the dashboard API checks it against the logged-in user on every request. Without that check, changing the lot id in the URL would show a competitor's revenue. A short sentence on access control here reads as care, and it costs ten seconds.

The Expedia angle
The owner is a second customer, the business that runs the lot. Expedia rounds have gone to that side before, like a 2022 SDE II round on hotels sending in listing requests. Give the owner their own API and their own access rules.

What happens when a gate loses the network?

Garages are concrete boxes, often underground, and their internet links do drop. If every barrier waits on the service, one outage traps every car inside every lot it serves. So decide early what each gate can do on its own, and how it catches up.

1

Entry keeps admitting on a local count

The entry gate keeps the last free counts it heard. Offline, it admits against those and prints a ticket whose id, entry time and lot are signed with a key the gate holds. Nobody can forge a cheaper entry time.

2

Exit prices the signed ticket itself

The exit gate checks the signature, reads the entry time, and prices the stay with its cached rate card. It needs no server to know the fee.

3

Payment uses the terminal's offline mode

Many card terminals can store a payment and submit it later, with the operator taking the risk of a decline. Cap the amount accepted offline.

4

Everything syncs with idempotency keys

When the link returns, the gate replays its entries and exits. Each carries the ticket id and the event type as its key, so replays add nothing twice.

Counts drift while the gate is offline. Two entry gates that can't see each other can both admit against the same last spot, and the lot runs a car or two over. That's an accepted trade, since a slightly full garage beats a closed one. Sensors or the next sync bring the counts back to the truth. Say the trade-off plainly, and say which side the business would choose.

Practice the core in code

The problem below shrinks the design to one class with three jobs. It admits vehicles with the best-fit rule from the first deep dive and charges per started hour on the way out. It also answers the owner's two questions: how many spots are free, and how much money the lot has made. The network, the gates and the payment provider are gone. What's left is the bookkeeping that has to be exact.

1

Parking lot: best-fit entry, hourly fees and the owner report

Medium
Problem
A garage has several levels. Each level has some compact, regular and large spots. A motorcycle fits any spot, a car fits a regular or large spot, and a truck fits only a large spot.

Write a class ParkingLot(levels, rates). levels[i] is [compact, regular, large], the spot counts on level i. rates is [motorcycle, car, truck], the price in cents per started hour for each vehicle type.

enter(plate, vehicle, minute) parks a vehicle and returns the level it parked on. It uses the smallest spot size that fits the vehicle, and within that size the lowest level with a free spot. Only when no level has a free spot of that size does it try the next size up. Return -1 if no spot fits or if a vehicle with that plate is already inside.

leave(plate, minute) frees the vehicle's spot and returns its fee in cents: the number of started hours, at least 1, times the rate for its type. Return -1 if the plate isn't inside.

report() returns [free_spots, revenue]: the free spots across all levels and sizes, and the total of every fee charged so far. Minutes never go backwards.

Input encoding. A test case is a JSON array of operations. The first entry is ["ParkingLot", [levels, rates]] and each later entry is [method, [args]]. The expected array holds each operation's return, with null for the constructor.
  1. ParkingLot([[1,1,0],[0,1,1]], [100,300,500])
  2. enter("M1", "motorcycle", 0)→ 0
  3. enter("C1", "car", 10)→ 0
  4. enter("C2", "car", 20)→ 1
  5. enter("C3", "car", 30)→ 1
  6. enter("T1", "truck", 40)→ -1

The motorcycle takes the compact spot on level 0. The first two cars take the regular spots on levels 0 and 1. With no regular spot left, the third car moves up a size to the large spot on level 1, so the truck finds nothing and is turned away.

How this uses the pattern

Keep a free count per level and size, and a map from plate to where the vehicle parked, its type and its entry minute. Entry loops over sizes from the smallest that fits, and over levels inside that loop. Leave looks up the plate, frees the spot and prices the stay.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Parking lot: best-fit entry, hourly fees and the owner report

Loading...
Click "Run" to execute your code
The Expedia angle
This is the allocation rule from the first deep dive plus the fee and the owner report, small enough to run. Most wrong answers loop over levels first and sizes second, which hands a motorcycle the large spot on level 0. The other common slip is the fee: 61 minutes is two hours, and 0 minutes is one.
Take it further
Extend it toward the full design. Add a daily cap so the fee for any 24 hours never exceeds a set amount. Then make entry safe for two gates at once, and say whether a lock on the lot or one lock per level and size is enough. Finally, change the report to return revenue per hour of the day, which is the owner dashboard's rollup in miniature.

What is expected at each level

Expedia's engineering levels run SDE I, SDE II, SDE III, then Senior. SDE III sits below Senior here, so don't read it as a senior title. In US and Europe loops from 2025 and 2026, design rounds start at SDE II. The 2019 parking lot report came from an SDE1 loop, but current SDE I loops in the US are usually coding and behavioral only.

SDE II

About 80% breadth, 20% depth. You get the classes right with clear responsibilities, explain the size-fitting rule, keep money in cents, and turn the classes into an API and two stores without being dragged there. One deep dive done well is enough, and the double allocation race is the one to have ready. The bar: a clean object model, a working service sketch, and a correct answer to "two gates, one spot".

SDE III

Closer to 60/40. You raise the race and the idempotent retry yourself, and you defend Postgres with the reason that the claim and the ticket need one transaction. Pricing as versioned rate cards, or the dashboard split between live capacity and historical revenue, should come out when the interviewer nudges. The bar: you find the hard parts before you're asked and reach a Great tier on at least one.

Senior

Around 40/60, and you lead the hour. Treat gates as unreliable devices and design their offline mode and sync. Weigh overfilling a lot against closing it, keep the owner dashboard off the gate path, and add access checks unprompted. The bar: the interviewer steers you between topics but never has to rescue a design.

Common questions

Is the Expedia parking lot question object-oriented design or system design?

It has been both. The 2021 round was titled "System Design + OOD", and the 2026 US round called it system design without saying more. Start with the classes, then show the service, and let the interviewer pick where to go deep.

What follow-ups come with it at Expedia?

The 2026 report lists none. The 2019 round asked for an owner view of capacity and money made. Beyond that, be ready for two gates racing for one spot and for pricing changes, since those are where any parking lot design gets tested.

Do Expedia interns and new grads get this?

Not as a design round. Their final round in 2026 is two back-to-back virtual interviews, each with coding problems and a few behavioral questions, and one is usually billed as data structures and OOP. The class model and the runnable problem here are decent practice for that one.

Key Takeaways

  • ✓Lead with classes: lot, levels, sized spots, tickets, a pricing interface and gates. Then show the service with an API and two stores.
  • ✓Admit by smallest fitting size, then lowest level, so trucks still find large spots.
  • ✓Claim a spot with one conditional update in the same transaction as the ticket, and key every retry.
  • ✓Keep owner capacity live from inventory and revenue in hourly rollups built from events, never from ticket scans.
Expedia interview guide

Know what Expedia asks before you walk in.

39 coding · 6 system design · 23 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Expedia System Design Interview QuestionsHad your Expedia interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.