Intersection of Two Interval Lists

Given two interval lists A and B. Every interval is a closed interval [start, end]. Within each list, intervals are sorted by start time and are pairwise non-overlapping.

Return all intersectio...

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: