Design driver-rider matching
A rider requests a car from where they are standing. Find a nearby driver, offer them the trip, and confirm the match. Drivers move continuously and can decline.
Want the full five-stage version of this problem?Open the gated walkthrough →