4 ms·
Given two closed intervals [a,b] and [c,d], write a simple predicate in any programming language that evaluates to TRUE if and only if the intervals overlap.
by pklausler 10y ago
Given two closed intervals [a,b] and [c,d], write a simple predicate in any programming language that evaluates to TRUE if and only if the intervals overlap.
- Joof 10y agoMatch on interval [a, c] and [b, d]?