Skip to content

Commit 16ac06f

Browse files
authored
Update readme.md
1 parent 8d50f59 commit 16ac06f

File tree

1 file changed

+10
-4
lines changed
  • src/main/java/g3001_3100/s3002_maximum_size_of_a_set_after_removals

1 file changed

+10
-4
lines changed

Diff for: src/main/java/g3001_3100/s3002_maximum_size_of_a_set_after_removals/readme.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,33 @@ Return _the **maximum** possible size of the set_ `s`.
1414

1515
**Output:** 2
1616

17-
**Explanation:** We remove two occurences of 1 from nums1 and nums2. After the removals, the arrays become equal to nums1 = [2,2] and nums2 = [1,1]. Therefore, s = {1,2}. It can be shown that 2 is the maximum possible size of the set s after the removals.
17+
**Explanation:** We remove two occurences of 1 from nums1 and nums2. After the removals, the arrays become equal to nums1 = [2,2] and nums2 = [1,1]. Therefore, s = {1,2}.
18+
19+
It can be shown that 2 is the maximum possible size of the set s after the removals.
1820

1921
**Example 2:**
2022

2123
**Input:** nums1 = [1,2,3,4,5,6], nums2 = [2,3,2,3,2,3]
2224

2325
**Output:** 5
2426

25-
**Explanation:** We remove 2, 3, and 6 from nums1, as well as 2 and two occurrences of 3 from nums2. After the removals, the arrays become equal to nums1 = [1,4,5] and nums2 = [2,3,2]. Therefore, s = {1,2,3,4,5}. It can be shown that 5 is the maximum possible size of the set s after the removals.
27+
**Explanation:** We remove 2, 3, and 6 from nums1, as well as 2 and two occurrences of 3 from nums2. After the removals, the arrays become equal to nums1 = [1,4,5] and nums2 = [2,3,2]. Therefore, s = {1,2,3,4,5}.
28+
29+
It can be shown that 5 is the maximum possible size of the set s after the removals.
2630

2731
**Example 3:**
2832

2933
**Input:** nums1 = [1,1,2,2,3,3], nums2 = [4,4,5,5,6,6]
3034

3135
**Output:** 6
3236

33-
**Explanation:** We remove 1, 2, and 3 from nums1, as well as 4, 5, and 6 from nums2. After the removals, the arrays become equal to nums1 = [1,2,3] and nums2 = [4,5,6]. Therefore, s = {1,2,3,4,5,6}. It can be shown that 6 is the maximum possible size of the set s after the removals.
37+
**Explanation:** We remove 1, 2, and 3 from nums1, as well as 4, 5, and 6 from nums2. After the removals, the arrays become equal to nums1 = [1,2,3] and nums2 = [4,5,6]. Therefore, s = {1,2,3,4,5,6}.
38+
39+
It can be shown that 6 is the maximum possible size of the set s after the removals.
3440

3541
**Constraints:**
3642

3743
* `n == nums1.length == nums2.length`
3844
* <code>1 <= n <= 2 * 10<sup>4</sup></code>
3945
* `n` is even.
40-
* <code>1 <= nums1[i], nums2[i] <= 10<sup>9</sup></code>
46+
* <code>1 <= nums1[i], nums2[i] <= 10<sup>9</sup></code>

0 commit comments

Comments
 (0)