Object-Oriented Programming · Waymo · Medium
Requirements Build an object-oriented scheduler that receives pickup requests in the sequence in which they arrive. Requests must be handled strictly in submission order; the scheduler must not rearrange them. Given every request's pickup and drop-off coordinates and a travel-time function, report the total elapsed time after all requests have been completed. Follow-ups: Introduce skip_to(timestamp) to move the simulation clock forward to a later timestamp, finishing the…
Checking your access…