← Questions

Check a new interval against existing ones for conflicts

0
GoogleCodingLast asked Aug 2026

Given a set of existing intervals, decide whether a new interval overlaps any of them. Then discuss answering many such checks quickly as intervals keep being added, for example by keeping them sorted.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding