Search⌘ K
AI Features

Intersection of Two Arrays

Intersection of Two Arrays gives you two integer arrays and asks for a new array of the distinct values they share. Return the result in any order.

Statement

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