Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Intersection of Two Arrays II
Bookmark
Input
Standard
Multiple Matches
No Intersection
Custom
nums1
=
[1, 2, 2, 1]
,
nums2
=
[2, 2]
nums1 (sorted):
0
1
1
1
2
2
3
2
nums2 (sorted):
0
2
1
2
Result:
[ ]
algo
master
.
io
Step:
Start: Find intersection of two arrays using two pointers
0 / 16
Input
Standard
Multiple Matches
No Intersection
Custom
nums1
=
[1, 2, 2, 1]
,
nums2
=
[2, 2]
0 / 16
nums1 (sorted):
0
1
1
1
2
2
3
2
nums2 (sorted):
0
2
1
2
Result:
[ ]
algo
master
.
io
Step:
Start: Find intersection of two arrays using two pointers