a for start time andb for end time (above horizontal line on the picture).
What is the way to parse them and get what is beneath horizontal line on the picture?
Best Answer
Hi Rostislav
It looks like you want the union of closed intervals. Here is some code that I think does the job. When the ends of intervals have the same value, it works because the sort function is stable and preserves ordering for ties.
Best Answer