Problems / Intervals / Minimum Interval to Include Each Query
#135 Hard Time O((n+q) log n) Space O(n+q) Animated

Minimum Interval to Include Each Query

For each query, find size of smallest interval containing query point.

LeetCode ↗
Approach: MinHeap + Sorting
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps