Skip to content

Instantly share code, notes, and snippets.

View tungsteno22's full-sized avatar
🔨

Nathan Avilez tungsteno22

🔨
View GitHub Profile

class: center, middle

Intersection


Prompt

Given two sorted arrays of numbers, return an array containing all values that appear in both arrays. The numbers in the resulting array (the "intersection") may be returned in any order, they needn't be sorted.