Given a list of time ranges that may overlap, combine any overlapping ranges into single ranges.
Insert a new time range into an already-sorted list of non-overlapping ranges, merging any overlaps.
Remove the fewest time ranges so that none of the remaining ones overlap.
Check if any meetings in your schedule overlap with each other.
Figure out the fewest meeting rooms needed so every meeting has a room, even when meetings overlap.
For each query value, find the smallest interval (by length) that contains it.