349
- hashSet remember to remove
- one is small one is large binary search
- sort two arrays using two pointers
- Intersection of Two Arrays II
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]
hashmap
sort + two pointers
349
本文标题:349 350 Intersection of two arra
本文链接:https://www.haomeiwen.com/subject/evtozxtx.html
网友评论