can we calculate the intersection of duplicate ele 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())