Compute the intersection of two closed intervals [a,b] and [c,d].
Constraints
Example
>>> overlap((1, 5), (3, 7)) (3, 5) >>> overlap((1, 3), (4, 5)) is None True >>> overlap((1, 5), (5, 9)) (5, 5)
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints