← Questions
Courier pay from order events
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A delivery courier is paid for active time. You receive the events of their orders (for example accepted and delivered, with timestamps) as if from an upstream service. Compute the pay: a base rate per active minute, where the rate depends on how many orders are active at the same time. Treat the input as coming from another service, and validate it.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
