Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is there a way to order the intervals and queries such that it takes less time to query?
Is there a way to add and remove intervals by going from the smallest query to the largest query to find the minimum size?