Skip to content

Commit ad91780

Browse files
refactor 1338
1 parent 5f5052e commit ad91780

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ _If you like this project, please leave me a star._ ★
99
| # | Title | Solutions | Video | Difficulty | Tag
1010
|-----|----------------|---------------|--------|-------------|-------------
1111
|1343|[Maximum Product of Splitted Binary Tree](https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1343.java) | |Medium||
12-
|1342|[Reduce Array Size to The Half](https://leetcode.com/problems/reduce-array-size-to-the-half/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1342.java) | |Medium||
1312
|1341|[The K Weakest Rows in a Matrix](https://leetcode.com/problems/the-k-weakest-rows-in-a-matrix/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1341.java) | |Easy||
13+
|1338|[Reduce Array Size to The Half](https://leetcode.com/problems/reduce-array-size-to-the-half/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1338.java) | |Medium||
1414
|1337|[Remove Palindromic Subsequences](https://leetcode.com/problems/remove-palindromic-subsequences/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1337.java) | |Easy|String|
1515
|1333|[Filter Restaurants by Vegan-Friendly, Price and Distance](https://leetcode.com/problems/filter-restaurants-by-vegan-friendly-price-and-distance/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1333.java) | |Medium||
1616
|1331|[Rank Transform of an Array](https://leetcode.com/problems/rank-transform-of-an-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_1331.java) | |Easy||

src/main/java/com/fishercoder/solutions/_1342.java renamed to src/main/java/com/fishercoder/solutions/_1338.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import java.util.Map;
88

99
/**
10-
* 1342. Reduce Array Size to The Half
10+
* 1338. Reduce Array Size to The Half
1111
*
1212
* Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the array.
1313
* Return the minimum size of the set so that at least half of the integers of the array are removed.
@@ -41,7 +41,7 @@
4141
* arr.length is even.
4242
* 1 <= arr[i] <= 10^5
4343
* */
44-
public class _1342 {
44+
public class _1338 {
4545
public static class Solution1 {
4646
public int minSetSize(int[] arr) {
4747
Map<Integer, Integer> map = new HashMap<>();

src/test/java/com/fishercoder/_1342Test.java renamed to src/test/java/com/fishercoder/_1338Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package com.fishercoder;
22

3-
import com.fishercoder.solutions._1342;
3+
import com.fishercoder.solutions._1338;
44
import org.junit.BeforeClass;
55
import org.junit.Test;
66

77
import static org.junit.Assert.assertEquals;
88

9-
public class _1342Test {
10-
private static _1342.Solution1 solution1;
9+
public class _1338Test {
10+
private static _1338.Solution1 solution1;
1111
private static int[] arr;
1212

1313
@BeforeClass
1414
public static void setup() {
15-
solution1 = new _1342.Solution1();
15+
solution1 = new _1338.Solution1();
1616
}
1717

1818
@Test

0 commit comments

Comments
 (0)