# Leetcode 350 - Intersection of 2 arrays II

Note:

• Use map to store frequencies, if it’s bigger than 1, then it should be added into the result.

Question:

Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it shows in both arrays and you may return the result in any order.

Example:

Code: