You have given a set of intervals like {2,7} , {3,8}, {9,11} , {-4,-1} so on. The question is to find the k'th min from these set of intervals.
Also the duplicates are counted twice. For example if intervals are {1,4} and {2,6} and k = 3 then the answer is 2 because if we flatten the intervals and sort merge them then we get the sequence
1,2,2,3,3,4,4,5,6
Where 3rd min is 3.
There can be a lot of ways to solve this problem. However I am struggling to find the one with minimum time / space complexity.