Search⌘ K
AI Features

Minimum Interval to Include Each Query

Explore how to determine the smallest interval that includes each query from a set of intervals. Understand the problem constraints and implement a solution to find minimal covering intervals or return -1 if none exists.

Statement

You are given a 2D integer array, intervals, where each element intervals[i] = ...