Implement a function that finds the intersection of two arrays.
MediumProblem Statement
Implement a function that finds the intersection of two arrays.
Sample Input
[1, 2, 3, 4], [3, 4, 5, 6]
Sample Output
[ 3, 4 ]
Limits
Time: 2s · Memory: 256 MB
Implement a function that finds the intersection of two arrays.
[1, 2, 3, 4], [3, 4, 5, 6]
[ 3, 4 ]
Time: 2s · Memory: 256 MB