Algorithm · Capital One · Easy
A bus line runs on the same timetable every day. You are given that timetable together with the time right now, and you must report how many minutes remain until the next bus departs. When every bus for today has already left, the next departure is the earliest bus of the following day. Every time value is written in 24-hour HH:MM notation. Input The first line is the count n of daily departures, the next n lines are the departure times, and the final line is currentTime.…