0

How to calculate union, intersection and complement of integer intervals without actually generating all integers in the range and perform set-arithmetic (Union, Intersection, Complement) on them?
For simplicity, I define an integer interval as a list of disjoint {min, max} subintervals, each co...