Ride Booking service LLD Machine Coding
Anonymous User
277

Problem statement:

  • Rider requests ride.
  • All the available driver must get the exact opportunity to accept the ride.
  • Whichever driver accepts the ride should not be allowed to take another ride.
  • A driver may or may not decide to accept the ride. Choice is binary use Math.random.
  • Add some delay of few secs(1-5) before the driver makes the decision.

Please share you way of solving this problem.

Hint : Multithreading.

Comments (0)