Let , , , be integers such that and . Write a function do_they_intersect(a, b, c, d) that tells us whether the open intervals and have a nonempty intersection.
Only the function will be evaluated. If your submission includes a
main program (e.g. with testmod), it must be either commented out or
inside a condition if __name__ == ’__main__’
Author: Jordi Delgado and José Luis Balcázar
Generation: 2026-01-25T16:47:57.949Z
© Jutge.org, 2006–2026.
https://jutge.org