Price rides with fairness and pooling
Write and design the pricing logic of a ride-hailing service: compute a fare from distance, time and demand, keep prices fair between riders, and price pooled rides where several riders share one car. Make it easy to add new pricing rules.
No answer yet. Write the first one; the best answer gets endorsed.
