← Questions
Is a number line fully covered after each landing point?
0
I was asked this
No reports yet. Sign in to say where you were asked it.
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.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
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
