Design a Ride-Hailing Service
Medium · Low-Level Design · about 45 minutes
Design the core classes of a ride-hailing app. Riders request a ride from A to B with a vehicle type; the system matches the nearest available driver of that type, the driver accepts or declines, and the trip moves through its lifecycle until it's paid. Fares depend on distance, time and surge.