I am using Python 3.8 and need to efficiently compute the cooccurrence counts of numbers in a list of lists.
I have the following array:
x = [[1, 3, 4], [5