Search⌘ K
AI Features

Minimum Interval to Include Each Query

Explore how to find the smallest interval including each query value given a list of intervals. Understand the problem constraints and practice implementing solutions to return the minimum interval size for each query or -1 if none apply.

Statement

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