更新 test.java

master
wangsiyuan 2023-09-06 17:34:50 +08:00
parent 199077684b
commit 57ac140a08
1 changed files with 7 additions and 5 deletions

View File

@ -1,9 +1,7 @@
package solution;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.*;
import java.util.stream.Collectors;
public class test {
@ -21,8 +19,12 @@ public class test {
// String[] strs = new String[]{"flower","flower","flower","flower"};
// String result = Solution.longestCommonPrefix(strs);
// System.out.println(result);
int m = Solution.majorityElement(nums1);
System.out.println(m);
// int m = Solution.majorityElement(nums1);
// System.out.println(m);
HashMap<Integer,Integer> map = new HashMap<>();
HashSet<Integer> set1 = new HashSet<>();
new LinkedHashSet<>();
new TreeSet<>();
}
}