no of intersection in an array code example
Example: can we calculate the intersection of duplicate ele
from collections import Counter
c = list((Counter(a) & Counter(b)).elements())
from collections import Counter
c = list((Counter(a) & Counter(b)).elements())