Search⌘ K
AI Features

Intersection of Two Arrays

Intersection of Two Arrays asks you to return a new array containing every value found in both input arrays, with duplicates removed and the result in any order.

Statement

You are given two integer arrays, arr1 and arr2. Your task is to return a new array ...