Merge lists that share common elements
My input is a list of lists. Some of them share common elements, eg.
My input is a list of lists. Some of them share common elements, eg.
here is the problem: I have a list of tuples (could be sets as well if needed). For instance: