Return the departure time of the last bus before the current time.
Unlock detailed company stats for this questionUpgrade
Given bus departure timestamps in chronological order in HH:MM format and the current time in HH:MM format, return the time of the bus that departed before the current time. If no bus departed before the current time, return -1. Took about 30 minutes because of formatting and edge cases.
Community answers
No answers contributed by the community yet.
Related questions
Return the minutes since the last bus departed.Related courses

Course

Course
Course
