Merge Weekly Time Intervals

Given a list of recurring weekly time intervals, merge intervals that overlap or touch.

Each endpoint is represented as a string in the format "Day HH:MM", for example ["Mon 09:00", "Mon 17:00"]....

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: