Hello I want to create a function that will take input as a list of lists and check if each list in that list is overlapping or entangling with each other. for e.g.
a = [[0.65, 0.71], [0.55, 0.65], [0.6, 0.66]]
here each of the lists in a are overlapping with each other. Since they are overlapping I want to return only the max and min from a. So, therefore, the function should return [[0.55, 0.71]] where 0.55 is the min in a and 0.71 is the max in a
case-2:
Say if there is another list b = [[0.65, 0.71], [0.55, 0.65], [0.1, 0.2]]. But now since only the first two combinations are overlapping i.e. [[0.65, 0.71], [0.55, 0.65], [0.6, 0.66]] now the function should return [[0.55, 0.71], [0.1, 0.2]]