hello, I have a list of lists of numbers, that I got with a function for combinations, for example [[1,2,3,4],[1,2,1,2],[3,4,3,4],[2,1,2,1],...]. I was trying to get combinations of those lists, with the condition that if any element in the first sublist is in the second sublist, to pass, if instead we have no elements in common, it continues, and so on until a stop point that I determined.
ex [1,2,1,2] can't have as a next element [2,1,3,4] because they have 1,2 in common, but [3,4,3,4] is instead acceptable.
Unfortunately it seems like every attempt I do doesn't return anything or it returns just a list of all combinations.
Could anyone help me?