I am referring to this test case where inputs are:
list1 = {1, 3}, {5, 6}, {7, 9}
list2 = {2, 5}, {5, 7}
According to the logic of the solution provided, it should take [5, 5] as an intersection when it checks for an intersection between [2, 5] and [5, 6].
Could anyone explain why [5, 5] is not included in the answer? I believe it should because it is a valid intersection.
Type your question above this line.
Course: https://www.educative.io/collection/5668639101419520/5671464854355968
Lesson: https://www.educative.io/collection/page/5668639101419520/5671464854355968/6518042546667520