ATS resume help
前往频道在 Telegram
WhatsApp Me https://wa.me/917674087200 ✅ ATS-Friendly Resumes ✅ Higher Interview Calls ✅ Free Tips + Templates
显示更多3 699
订阅者
-224 小时
-227 天
-7630 天
帖子存档
3 699
Those who have IBM and any placement exams help contact us.
Contact-- @placementsBro✔️
100 percent pass ❤️
Telegram-- @CodingPalace 🏖️
3 699
class Solution:
def intersect(self, nums1: List[int], nums2: List[int]) -> List[int]:
dict1 = dict()
for i in nums1:
if i not in dict1:
dict1[i] = 1
else:
dict1[i] += 1
ret = []
for i in nums2:
if i in dict1 and dict1[i]>0:
ret.append(i)
dict1[i] -= 1
return ret
Python3
