Let's say we have a list of N lists. For example:
L = [['A','B','C','D','E'], ['A','B','C'],['B','C','D'],['C','D'],['A','C','D']]
I want to find the longest common subsets that occur in this list and the corresponding counts. In this case:
ans = {'A,B,C':2, 'A,C,D':2, 'B,C,D':2}
I think this question is similar to mine, but I am having a hard time understanding the C# code.