Merge Date Ranges with Arrow Separator

You are given n date ranges, each as a string in the format YYYY-MM-DD -> YYYY-MM-DD (note there is a space on each side of ->; parsing should tolerate extra whitespace). Ranges are inclusive on b...

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: