Skip to content

Commit 850a318

Browse files
refactor 350
1 parent f25b581 commit 850a318

File tree

1 file changed

+0
-17
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-17
lines changed

src/main/java/com/fishercoder/solutions/_350.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
import java.util.Map;
77
import java.util.Arrays;
88

9-
/**
10-
* 350. Intersection of Two Arrays II
11-
*
12-
* Given two arrays, write a function to compute their intersection.
13-
14-
Example:
15-
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].
16-
17-
Note:
18-
Each element in the result should appear as many times as it shows in both arrays.
19-
The result can be in any order.
20-
21-
Follow up:
22-
What if the given array is already sorted? How would you optimize your algorithm?
23-
What if nums1's size is small compared to nums2's size? Which algorithm is better?
24-
What if elements of nums2 are stored on disk, and the memory is limited such that you cannot load all elements into the memory at once?
25-
*/
269
public class _350 {
2710

2811
public static class Solution1 {

0 commit comments

Comments
 (0)