Interval List Intersections
Medium
Intervals & Line Sweep
Given two lists of closed intervals, each sorted and internally disjoint, print their intersection as a sorted list of intervals, one per line.
Constraints
0 <= n, m <= 1000 0 <= start <= end <= 10^9
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.