Closed Interval Overlap
Asked at Netflix
Reported by the problem's creator, not verified
A closed integer interval [start, end] covers every integer x with start <= x <= end. Equal intervals each count separately. Implement the function closed_interval_overlap.
Examples
Example 1
Input: intervals =
[[1,3],[2,5],[5,7]]Output:
[2]Explanation: The points 2, 3 and 5 are each covered by two intervals; 5 lies in both
[2,5]and[5,7]because both are closed. No point is covered by three.
Import your own questions
Paste a question you were asked and get a full problem: statement, tests and a checked solution.