AlgoMaster Logo

Intersection of Two Arrays II

nums1=[1, 2, 2, 1],nums2=[2, 2]
0 / 11
algomaster.io
Step:Search nums2 for each value of nums1, claiming one match at a time