Wait Time for the Next Bus

Given a daily bus timetable and the current time, return the number of minutes to wait for the next bus.

If there are no remaining buses today, the next bus is the first bus on the following day. All...

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: