Arrays·medium 18 min 75 XP
Array Intersection
Return the values that appear in both arrays, without duplicates.
Examples
- intersection([1,2,3], [2,3,4]) → [2,3]
Constraints
- Keep the required function name so the tests can find it
- Return a value instead of only logging it
- Do not mutate inputs unless the challenge asks you to
Array Intersection · editor
Code runs in an isolated Web Worker with a 3-second timeout — no DOM access, and it can never hang the page.