I want to ensure that a List of Lists contains no element which is subsumed by another. Each nested List should contain at least one unique element compared to any other nested List.
This code works, but seems horribly inefficient. Is there a better way?
posted 3 years ago
A Jj wrote:
When list2.equals(list1), why don't you remove one of them?