Dsa
Intervals
Warm-up
Interval Cover Check
Given a list of intervals and a target interval, check whether the target interval is covered by any of the intervals in the list. Each interval is represented as a pair of integers [start, end]. The input ends with a single line containing 'end'. For example:
Input:
[1, 4]
[2, 3]
[5, 6]
end
Target:
[2, 4]
Output:
True
Key concepts
intervalscoverboolean
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now