Gregor Lingl schrieb:
As my proposed solution shows this approach can be done with on board means of Python (namely the set type). This would be quite different though, if you had floating point boundaries of the intervals.
... or if the intgers involved were very big :-(
Regards, GregorDuane
-- http://mail.python.org/mailman/listinfo/python-list