How is 7,7 a common interval. If one of the lists has 5,7 as an interval and the other has 7,9.
I am assuming that the intervals are closed (boundary inclusive) and so [7,7]
3 Likes
very nice explanation of this problem here.
criss-crossing lock condition is the key to understand the problem.
2 Likes
Thank you for this diagram explanation. I was scratching my head for a few hours trying to draw my own!