Back to problems

Dasher Pay

Algorithm · DoorDash · Hard

Problem: Dasher Pay Determine how much a Dasher earns over a specified period of work. You receive: A work interval [S, E), expressed as minutes measured from the same time origin. A base hourly wage baseRate, given in cents per hour. n promotional intervals. Every promotion is [L, R) and contributes an additional hourly wage extraRate, also measured in cents per hour. The compensation rules are: Each minute belonging to [S, E) contributes the base hourly wage. A minute…

Checking your access…