Expedia Group: API to decide whether a product can be delivered to a pincode in two days
Prompt. Design an API that, given a product and a delivery postal code (pincode), says whether the product can arrive within two days.
Points the discussion covered
- Core check: validating distance and transit time between where stock sits and the destination.
- Data model: how to represent warehouses, inventory, serviceable regions and delivery times.
- Extensibility: supporting more regions and different service levels (for example, adding faster or slower delivery promises later).
- Failure handling: what the API does when a dependency it relies on fails.
- Scalability as request volume grows.
Context. LLD round in an SDE 2 loop in Bangalore, after an online assessment with two coding problems and two DSA rounds (longest consecutive run, reordering a linked list, longest substring with unique characters, minimum in a rotated sorted array).
What the interviewer cared about. Trade-offs. The candidate's advice is to talk through choices out loud and justify why the design can stretch to new regions and service tiers.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.