DoorDash Interview Prep (E4 / E5)

DoorDash has a small, distinctive question bank like Airbnb, and the signature problems give away what the company thinks about all day. Walls and Gates is multi-source BFS on a grid, which is how you reason about nearest-Dasher. Single-Threaded CPU and Most Profit Assigning Work are assignment and scheduling under constraints, which is dispatch. Shortest Distance from All Buildings is placement optimisation. Solve the top of the list and you will notice the pattern before the interviewer mentions it.

The coding bar is solid LeetCode medium rather than exotic — the real emphasis is on clean, working code that handles the cases you were told about. The loop then adds a debugging round in unfamiliar code and a system design round that stays firmly in the delivery domain: assignment, batching, ETA, and order state.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, team, target level
Online Assessment (new grad) ~90 min 2 coding problems, medium to hard
Technical Screen 60 min 1-2 coding problems, solid medium
Onsite: Coding / Code Craft 60 min Working feature code, clean structure
Onsite: Debugging 45-60 min Find and fix bugs in unfamiliar code
Onsite: System Design 60-75 min Assignment, batching, ETA, order flow
Onsite: Behavioural (HM) 45-60 min Ownership, bias for action, conflict

The loop mix moves around. A dedicated debugging round shows up in most recent reports, some loops run a practical Code Craft session instead of a second algorithm round, and DoorDash has been experimenting with working sessions that allow AI coding tools. For E5 and above the design round usually extends into a domain deep dive on the team’s own stack. Ask your recruiter which rounds you are getting rather than assuming.


What DoorDash Actually Tests

Derived from 74 reported DoorDash-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 7 9%
Medium 42 57%
Hard 25 34%

Over a quarter of the list is Hard, so treat Hard problems as the baseline rather than a stretch goal.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Graphs 12 16%
2 Arrays & Hashing 10 14%
3 Trees 9 12%
4 Tries & String Search 7 9%
5 Dynamic Programming 6 8%
6 Binary Search 5 7%
7 Strings 5 7%
8 Heap / Priority Queue 4 5%
9 Sliding Window & Two Pointers 4 5%
10 Stack & Monotonic Stack 4 5%

DoorDash Signature Problems

These rank high on DoorDash’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Walls and Gates BFS Medium 10 of 142 Solve →
2 Longest Increasing Path in a Matrix DAG + Memoization Hard 15 of 142 Solve →
3 Search Suggestions System Trie + Heap Medium 15 of 142 LeetCode →
4 Single-Threaded CPU Heap Medium 7 of 142 LeetCode →
5 Design File System Trie + Design Medium 11 of 142 LeetCode →
6 Shortest Distance from All Buildings BFS Hard 11 of 142 Solve →
7 Most Profit Assigning Work Binary Search + Greedy Medium 4 of 142 LeetCode →
8 Buddy Strings Hash Table + String Easy 5 of 142 LeetCode →
9 Check if One String Swap Can Make Strings Equal Counting + Hash Table Easy 5 of 142 LeetCode →
10 Next Greater Element III Two Pointers Medium 10 of 142 LeetCode →
11 Minimum Number of Steps to Make Two Strings Anagram Counting + Hash Table Medium 9 of 142 Solve →
12 Count Nodes With the Highest Score DP on Trees + Binary Tree Medium 3 of 142 LeetCode →
13 Count All Valid Pickup and Delivery Options Combinatorics + DP Hard 2 of 142 LeetCode →
14 Mice and Cheese Heap + Greedy Medium 2 of 142 LeetCode →

If you are short on time, these carry more DoorDash-specific signal per hour than the universal top-100 lists.


System Design (HLD) Problems Asked at DoorDash

# Problem Difficulty Link
1 Food Delivery Platform (Zomato / DoorDash) Advanced Read →
2 Ride / Delivery Dispatch (Uber-style Matching) Advanced Read →
3 Freight and Delivery Logistics Advanced Read →
4 Nearby Service (Restaurants and Dashers) Intermediate Read →
5 Cart System Intermediate Read →
6 Payment System Advanced Read →
7 Search Autocomplete (Search Suggestions) Intermediate Read →
8 Delayed Trigger Service (Delivery SLA Timers) Intermediate Read →
9 Notification System (Order Status) Intermediate Read →

LLD / Machine Coding Problems Asked at DoorDash

The Code Craft round asks for runnable code with sensible class boundaries, usually around an order, an assignment, or a delivery window. Design File System and Design In-Memory File System both sit near the top of the tagged list, so expect at least one object-design task somewhere in the loop.

# Problem Difficulty Link
1 Order Management System Intermediate Read →
2 Ride / Delivery Matching Intermediate Read →
3 Delivery Slot Booking Intermediate Read →
4 File System Intermediate Read →
5 E-commerce Cart Beginner Read →

DSA Problems Asked at DoorDash

72 problems across 12 pattern groups. Each group is allocated in proportion to its real share of DoorDash’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 12 on the list.

# Problem Pattern Difficulty Link
1 Longest Increasing Path in a Matrix DAG + Memoization Hard Solve →
2 Making A Large Island Union-Find + BFS Hard Solve →
3 Course Schedule II Topological Sort + Graph Medium Solve →
4 Max Area of Island Union-Find + BFS Medium Solve →
5 Course Schedule DAG + Topological Sort Medium Solve →
6 Minimize Malware Spread Union-Find + Graph Hard LeetCode →
7 Number of Islands Union-Find + BFS Medium Solve →
8 Count Sub Islands Union-Find + BFS Medium LeetCode →
9 Maximum Path Quality of a Graph Backtracking + Graph Hard LeetCode →
10 Similar String Groups Union-Find + BFS Hard LeetCode →
11 Swim in Rising Water Minimax + Dijkstra Hard Solve →
12 Find Edges in Shortest Paths Shortest Path + Graph Hard LeetCode →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 10 on the list.

# Problem Pattern Difficulty Link
13 Walls and Gates BFS Medium Solve →
14 Shortest Distance from All Buildings BFS Hard Solve →
15 Find Nearest Point That Has the Same X or Y Coordinate Array Easy LeetCode →
16 Immediate Food Delivery I Database Easy LeetCode →
17 Immediate Food Delivery II Database Medium LeetCode →
18 Two Sum Hash Table + Array Easy Solve →
19 Best Meeting Point Matrix + Math Hard Solve →
20 Ways to Make a Fair Array Prefix Sum Medium LeetCode →
21 Rotting Oranges BFS Medium Solve →
22 Shortest Path to Get Food BFS Medium LeetCode →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 9 on the list.

# Problem Pattern Difficulty Link
23 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
24 Count Nodes With the Highest Score DP on Trees + Binary Tree Medium LeetCode →
25 Vertical Order Traversal of a Binary Tree Binary Tree + BFS Hard Solve →
26 Largest Rectangle in Histogram Range Query + Monotonic Stack Hard Solve →
27 Serialize and Deserialize Binary Tree Binary Tree + Design Hard Solve →
28 Sliding Window Maximum Range Query + Monotonic Queue Hard Solve →
29 Sliding Window Median Treap + Sliding Window Hard LeetCode →
30 Binary Tree Vertical Order Traversal Binary Tree + BFS Medium Solve →
31 Diameter of Binary Tree DP on Trees + Binary Tree Easy Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 7 on the list.

# Problem Pattern Difficulty Link
32 Search Suggestions System Trie + Heap Medium LeetCode →
33 Design File System Trie + Design Medium LeetCode →
34 Design In-Memory File System Trie + Design Hard LeetCode →
35 Implement Trie (Prefix Tree) Trie + Design Medium Solve →
36 Word Search II Trie + Backtracking Hard LeetCode →
37 Design Add and Search Words Data Structure Trie + Design Medium Solve →
38 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 6 on the list.

# Problem Pattern Difficulty Link
39 Maximum Profit in Job Scheduling Binary Search + DP Hard Solve →
40 Count All Valid Pickup and Delivery Options Combinatorics + DP Hard LeetCode →
41 01 Matrix BFS + DP Medium LeetCode →
42 Longest Common Subsequence LCS + DP Medium Solve →
43 Jump Game Greedy + DP Medium Solve →
44 Jump Game II Greedy + DP Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 5 on the list.

# Problem Pattern Difficulty Link
45 Koko Eating Bananas Binary Search Medium Solve →
46 Most Profit Assigning Work Binary Search + Greedy Medium LeetCode →
47 132 Pattern Ordered Set + Monotonic Stack Medium LeetCode →
48 Subsequence With the Minimum Score Binary Search + Two Pointers Hard LeetCode →
49 Minimum Size Subarray Sum Sliding Window + Prefix Sum Medium Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 5 on the list.

# Problem Pattern Difficulty Link
50 Buddy Strings Hash Table + String Easy LeetCode →
51 Check if One String Swap Can Make Strings Equal Counting + Hash Table Easy LeetCode →
52 Minimum Number of Steps to Make Two Strings Anagram Counting + Hash Table Medium Solve →
53 Integer to Roman Math + Hash Table Medium Solve →
54 Roman to Integer Math + Hash Table Easy Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 4 on the list.

# Problem Pattern Difficulty Link
55 Insert Delete GetRandom O(1) Randomized + Design Medium LeetCode →
56 LRU Cache Doubly Linked List + Design Medium Solve →
57 Design Browser History Data Stream + Doubly Linked List Medium Solve →
58 LFU Cache Doubly Linked List + Design Hard Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 4 on the list.

# Problem Pattern Difficulty Link
59 Single-Threaded CPU Heap Medium LeetCode →
60 Find K Closest Elements Sliding Window + Heap Medium Solve →
61 Mice and Cheese Heap + Greedy Medium LeetCode →
62 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 4 on the list.

# Problem Pattern Difficulty Link
63 Next Greater Element III Two Pointers Medium LeetCode →
64 Interval List Intersections Sweep Line + Two Pointers Medium LeetCode →
65 Next Permutation Two Pointers Medium Solve →
66 4Sum Two Pointers Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 4 on the list.

# Problem Pattern Difficulty Link
67 Basic Calculator III Stack Hard LeetCode →
68 Basic Calculator Stack Hard Solve →
69 Basic Calculator II Stack Medium Solve →
70 Asteroid Collision Stack Medium Solve →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 2 on the list.

# Problem Pattern Difficulty Link
71 Sudoku Solver Dancing Links + Algorithm X Hard Solve →
72 Brace Expansion Backtracking + Stack Medium LeetCode →

DoorDash’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Graphs Very High 12 (16%) Longest Increasing Path in a Matrix, Making A Large Island, Course Schedule II
2 Arrays & Hashing High 10 (14%) Walls and Gates, Shortest Distance from All Buildings, Find Nearest Point That Has the Same X or Y Coordinate
3 Trees High 9 (12%) Binary Tree Maximum Path Sum, Count Nodes With the Highest Score, Vertical Order Traversal of a Binary Tree
4 Tries & String Search Medium-High 7 (9%) Search Suggestions System, Design File System, Design In-Memory File System
5 Dynamic Programming Medium-High 6 (8%) Maximum Profit in Job Scheduling, Count All Valid Pickup and Delivery Options, 01 Matrix
6 Binary Search Medium-High 5 (7%) Koko Eating Bananas, Most Profit Assigning Work, 132 Pattern
7 Strings Medium 5 (7%) Buddy Strings, Check if One String Swap Can Make Strings Equal, Minimum Number of Steps to Make Two Strings Anagram
8 Design (Coding) Medium 4 (5%) Insert Delete GetRandom O(1), LRU Cache, Design Browser History
9 Heap / Priority Queue Medium 4 (5%) Single-Threaded CPU, Find K Closest Elements, Mice and Cheese
10 Sliding Window & Two Pointers Medium 4 (5%) Next Greater Element III, Interval List Intersections, Next Permutation

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Graphs, Arrays & Hashing, Trees covers the bulk of what DoorDash actually asks. The rest is insurance for the one round that goes somewhere unexpected.


The Debugging Round

You get a small codebase you have never seen, a failing behaviour, and roughly forty-five minutes. It is the round candidates most often describe as the one that did not go smoothly, usually because they started editing before they understood anything.

A method that works:

  1. Read the failure first. Stack trace, failing test, or reported symptom. Say what it tells you about which layer is at fault.
  2. Map the code before touching it. Name the entry point, the data flow, and the two or three places the bug could plausibly live. Out loud.
  3. State a hypothesis. “I think the route is deduplicating on the wrong key.” A named guess is a testable guess.
  4. Confirm it cheaply. A print, a breakpoint, or a one-line test. Do not fix on suspicion.
  5. Make the smallest correct change. Then say what regression test you would add.

Interviewers are watching for targeted fixes and a narrated process. A candidate who finds the bug silently in ten minutes scores worse than one who takes twenty-five and explains every step.


Domain Design: Assignment, Batching, and ETA

The design round almost always lands on some part of the delivery pipeline. These are the sub-problems worth having a prepared position on.

Assignment. Given open orders and available couriers, who gets what? Start with the naive greedy nearest-courier, say why it degrades (couriers starve, long tails, no lookahead), then move to batch assignment over a short time window scored on an objective that mixes pickup distance, promised delivery time, and courier utilisation. Mention that an order held for ten seconds to find a better match is often a better outcome than an instant poor one.

Batching. Two orders from the same restaurant heading to nearby addresses should share a trip. The constraint that matters is food quality against efficiency, so the batching window and the detour budget are the tunable knobs. Say what you would measure to set them.

ETA. Three components: time until the order is ready, time for the courier to reach the restaurant, and time to the customer. Each is a prediction with its own error. Discuss how you feed actuals back into the model, and how you expose uncertainty to the customer rather than a single confident number.

Order state. Created, confirmed, preparing, picked up, delivered, plus the unhappy paths — cancelled, refunded, courier unassigned. Model it as an explicit state machine with idempotent transitions, because every one of those events can arrive twice.

What to cover without being asked: idempotent order creation, retries with backoff on downstream calls, a degraded mode when the assignment service is unavailable, and the handful of metrics you would alarm on.


Behavioural Round

# Question
1 Tell me about a time you shipped something quickly with incomplete information.
2 Tell me about a system you owned end to end in production, including the on-call.
3 Tell me about a time you found the real cause of an incident rather than the symptom.
4 Tell me about a time you disagreed with your manager or a partner team.
5 Tell me about something you improved by a small amount repeatedly rather than all at once.
6 Tell me about a time you had to choose between shipping and doing it properly.
7 Tell me about a time you pushed back on scope to protect reliability.
8 Why DoorDash, and what would you want to work on?

DoorDash leans on ownership, bias for action, and getting one percent better every day. Stories about operating a system you built — the alerts you added, the page you got at 3am, the fix you shipped the next morning — land better than stories that end at launch.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Graphs (part 1) Longest Increasing Path in a Matrix, Making A Large Island, Course Schedule II
2 Graphs (part 2) Max Area of Island, Course Schedule, Minimize Malware Spread
3 Arrays & Hashing (part 1) Walls and Gates, Shortest Distance from All Buildings, Find Nearest Point That Has the Same X or Y Coordinate
4 Arrays & Hashing (part 2) Immediate Food Delivery I, Immediate Food Delivery II, Two Sum
5 Trees (part 1) Binary Tree Maximum Path Sum, Count Nodes With the Highest Score, Vertical Order Traversal of a Binary Tree
6 Trees (part 2) Largest Rectangle in Histogram, Serialize and Deserialize Binary Tree, Sliding Window Maximum
7 Tries & String Search Search Suggestions System, Design File System, Design In-Memory File System
8 Dynamic Programming Maximum Profit in Job Scheduling, Count All Valid Pickup and Delivery Options, 01 Matrix
9 Binary Search Koko Eating Bananas, Most Profit Assigning Work, 132 Pattern
10 Strings Buddy Strings, Check if One String Swap Can Make Strings Equal, Minimum Number of Steps to Make Two Strings Anagram
11 Design (Coding) Insert Delete GetRandom O(1), LRU Cache, Design Browser History
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for DoorDash Interviews

  1. Start with the signature problems. Walls and Gates, Single-Threaded CPU, and Most Profit Assigning Work are reported heavily here and rarely elsewhere. They are also the three that map most directly to the business, so they are worth doing twice.
  2. Get fluent in multi-source BFS. Grid distance problems dominate the top of the list. Know the pattern cold: seed the queue with every source, expand in lockstep, and never re-visit a cell.
  3. Write clean working code, not clever code. The coding bar is medium. What separates candidates is whether the solution actually runs on the cases discussed, with named helpers and sensible variables, inside the time budget.
  4. Practice reading code you did not write. For the debugging round, resist the urge to rewrite. Form a hypothesis, say it out loud, then make the smallest change that tests it. Targeted fixes score, wholesale rewrites do not.
  5. Design for the delivery domain specifically. Assignment of orders to Dashers, batching several orders into one route, ETA prediction and its feedback loop, and order state transitions. Generic feed or chat answers waste the round.
  6. Volunteer reliability and observability. DoorDash operates a physical marketplace where failures are visible to real couriers and customers. Talk about retries, idempotent order creation, degraded modes, and what you would alarm on.
  7. Expect SQL. Immediate Food Delivery I and II are both on the list. If you have not written a window function in a while, warm it up.

Other Company Prep


The loop composition varies by team, level, and year, and DoorDash has been actively changing its technical rounds. Treat the table above as the commonly reported shape and confirm the details with your recruiter.