【Leetcode】350. Intersection of Two Arrays II(求解数组的交集)
Giventwoarrays,writeafunctiontocomputetheirintersection.Example1:Input:nums1=[1,2,2,1],nums2=[2,2]Output:[2,2]Example2:Input:nums1=[4,9,5],nums2=[9,4,9,8,4]Output:[4,9]Note:Eachelementintheresultshoul