← Questions

Find the gaps between intervals

0
NuroCodingLast asked Nov 2025

Given a list of intervals in any order, return every gap that no interval covers between the earliest start and the latest end. It is merge intervals, but you return the spaces in between.

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