Algorithm · Verkada · Medium
Problem: Combine Alert Intervals from Multiple Cameras You receive alert intervals for several surveillance cameras. Each camera provides intervals that are sorted by their starting times and do not overlap one another. Produce the union of all alert time ranges from every camera. Whenever two intervals overlap or touch at a boundary, combine them into one interval. Input k interval lists, intervals[i], where each item is a list of (start, end) pairs Each individual list is…
Checking your access…