更新 test.java
parent
199077684b
commit
57ac140a08
|
|
@ -1,9 +1,7 @@
|
||||||
package solution;
|
package solution;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.*;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class test {
|
public class test {
|
||||||
|
|
@ -21,8 +19,12 @@ public class test {
|
||||||
// String[] strs = new String[]{"flower","flower","flower","flower"};
|
// String[] strs = new String[]{"flower","flower","flower","flower"};
|
||||||
// String result = Solution.longestCommonPrefix(strs);
|
// String result = Solution.longestCommonPrefix(strs);
|
||||||
// System.out.println(result);
|
// System.out.println(result);
|
||||||
int m = Solution.majorityElement(nums1);
|
// int m = Solution.majorityElement(nums1);
|
||||||
System.out.println(m);
|
// System.out.println(m);
|
||||||
|
HashMap<Integer,Integer> map = new HashMap<>();
|
||||||
|
HashSet<Integer> set1 = new HashSet<>();
|
||||||
|
new LinkedHashSet<>();
|
||||||
|
new TreeSet<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue