Suppose I have a set of intervals and for any given interval I want to know how many intervals in my set are fully contained in it.
Does anybody know of an efficient way doing this?
Query on a set of intervals
Suppose I have a set of intervals and for any given interval I want to know how many intervals in my set are fully contained in it.
Does anybody know of an efficient way doing this?