0 day streak
Anonymous · shared experience20 Oct 2026 · 9 views

DoorDash: Courier pay from overlapping deliveries, then peak-window multipliers

Interview question #DoorDash Phone screen

Problem. Compute a courier's pay from a log of their deliveries. Deliveries can overlap in time, and pay depends on how many deliveries are active during each stretch of time. The post does not give the full rate rules or an example.

How it unfolded. The candidate spent time clarifying requirements and the shape of the data, then wrote a straightforward solution. The interviewer nudged toward a sweep line over start and end events, and the candidate rewrote it that way. Next came a discussion of edge cases, which the candidate felt was close to a system-design conversation.

Follow-up. Add peak windows: periods when the pay rate is multiplied. Merging the peak boundaries into the event list and re-sorting everything was ruled out, because sorting was not allowed. The candidate first tried checking each time point against every window, which got messy. They then proposed binary-searching each peak boundary into the already sorted events.

What mattered. Reaching the sweep line quickly, handling edge cases, and adapting when a constraint was added mid-interview. A nearly complete follow-up was accepted.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.