← Questions

Is a number line fully covered after each landing point?

0
WaymoCodingLast asked Sep 2026

Points land one at a time on the segment [0, 50]. Each point covers the interval of length 1 centred on it (0.5 to each side), and covered parts stay covered. After each landing, return whether the whole segment is now covered. Make each update fast, for example by keeping merged intervals in a sorted structure.

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