Finding the XOR between multiple lists of no overlapping time intervals (Java)

Posted by nick898@reddit | learnprogramming | View on Reddit | 4 comments

Does any one have any elegant solution for finding the XOR between two lists of time intervals, preferably in Java? You can assume that, within each list, the time intervals are non-overlapping, but it is not safe to assume that between the two lists they are non-overlapping. I’ve been struggling with it the past couple of days.