Design ETA Prediction
It sounds like a maps problem and it is mostly not. The number a consumer sees on a restaurant card, "37 min," and the number again at checkout, and the live estimate that ticks down while their food is out for delivery, are all predictions. They come from a model that has learned how long this restaurant takes to cook at this hour. It also knows how long it takes to find a Dasher right now, and how long the drive will be. The same prediction feeds dispatch, which decides who to assign partly on how each choice moves the delivery time. So this is an ML system: feature engineering, a trained model, a training loop that feeds a serving path, with geography as one input among many.
Anchor the scale. DoorDash delivers on the order of several million orders a day, so call it roughly 7 million completed deliveries every day, which matters twice. Every finished delivery is a labeled training row, so the training set grows by millions of examples daily. And every active delivery wants its ETA refreshed as it moves through the kitchen and onto the road. Predictions fire far more often than orders do. Add the browse case, where a consumer scrolling the home feed sees an estimate on every restaurant tile, and the read volume climbs into the hundreds of thousands per second.
- 1 diagram
- 5 sections
- about 40 min
Premium lessonDoorDash 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 · Cancel anytime
DoorDash interview guideKnow what DoorDash asks before you walk in.
14 coding · 5 system design · 21 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.