gfg union of 2 arrays 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())