Pick the fix
You need the fewest points so that every interval contains at least one. Which sort?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A By end, placing a point at the end of each interval not yet hit
Right: the end is the latest place that still hits this interval, so it hits the most later ones.
Choosing the end point is the same exchange argument as keeping the earliest-ending booking.
Why not the others?
- B By start, placing a point at each start. That can place many more points than needed.
- C By length, shortest first. Length ignores where intervals sit on the line.