Design Ride Sharing System
Riders and drivers wait in arrival order; a match pairs the front of each queue and a cancellation removes a waiting rider.
Riders and drivers wait in arrival order; a match pairs the front of each queue and a cancellation removes a waiting rider.