Example: panda dataframe is,
start end
0. 10 20
1. 30 40
2. 50 60
3. 25 35
4. 70 80
need to create a list,
ovrlap = [false, true, false, true, false]
as idx 1 and 3 are overlapping so in the list also in those 2 idx are true.
I tried with 2 for loops, but that's taking a long time. Looking for a fast algo.
It's not like merging overlaps, as that doesn't maintain the order of the original list, sorts the list.