intervals

Finding integer distance between two intervals

Finding integer distance between two intervals Question: I’m looking for an easy way to find the minimum distance between two integer intervals using python. For example, the minimum between [0,10] and [12,20] would be 2. If the two intervals overlap in any way, the distance would be 0. Any suggestions on an easy way to …

Total answers: 4