• + 1 comment

    A set of intervals is given. Each intervals can overlap with the others. If a point is overlapped by just two intervals, it is fine. If a point is overlapped by three or more intervals, it is bad.

    What you should do is to find the largest subset (of intervals) that does not have a bad overlap. And return the size of the subset.