Search⌘ K
AI Features

Minimum Interval to Include Each Query

Understand how to determine the minimum-sized interval containing each query value from given intervals. Learn to handle interval queries efficiently, return the smallest interval size per query, or -1 if no interval covers the query.

Statement

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