Is a number line fully covered after each landing point?

0
Remix

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.

WaymoCodingLast asked Sep 2026
No answer yet. Write the first one; the best answer gets endorsed.