I have a list of lists ("sublists") and I want to see if the same sequence of any unspecified length occurs in more than one sublist. To clarify, the order of items must be preserved - I do not want the intersection of each sublist as a set. There must be at least 2 items that match sequentially. Please see example below.
Input:
someList = [[0,1,3,4,3,7,2],[2,3,4,3],[0,3,4,3,7,3]]
Desired Output: (will be printed to file but don't worry about this detail)
sublist0_sublist1 = [3,4,3]
#intersection of 1st and 2nd sublists
sublist0_sublist2 = [3,4,3,7]
#intersection of 1st and 3rd sublists
sublist1_sublist2 = [3,4,3]
#intersection of 2nd and 3rd sublists