0
I am trying to solve for the problem where given a bunch of intervals as follows:
(1,2),(2,5),(4,7),(9,11)
I find their union, which in the above given case would be:
(1,7),(9,11)
It will be great to get some feedback on whether I am on the right track and also how I can improve upon what I...