# Leetcode 349 - Intersection of 2 arrays

Note:

• At first, I thought we are looking for an intersection that has to be the same order in both arrays. But it’s not that hard in fact.
• This is more like finding elements that have appeared in both arrays.

Question:

Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and you may return the result in any order.

Example:

Code: