Dasher Pay with Peak Time

Dasher Pay with Peak Time

Given order-status events for one day, calculate a Dasher's total pay.

An order becomes active at its START event and stops being active at its matching END event. A...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: