两个区间存在交集

存在区间[a1,b1]和[a2, b2],当满足什么条件时,两个区间有交集?

!(b1<a2 or b2<a1)

或 b1>=a2 and b2>=a1

原文地址:https://www.cnblogs.com/allenwas3/p/8464385.html