Bus Waiting Problem

At a bus stop, people arrive at different times. Each bus arrives every 10 minutes. Calculate how many people can get on the bus and how long they'll need to wait for the next bus. Assume there are no...

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: