更新 test.java
parent
ded5c3051c
commit
959157e587
|
|
@ -6,22 +6,11 @@ import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class test {
|
public class test {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
int[] nums = new int[]{3,2,2,3,1,2};
|
||||||
int[] nums1 = new int[]{1,2,3,0,0,0};
|
int[] nums1 = new int[]{1,2,3,0,0,0};
|
||||||
// int m = 3;
|
int length = Solution.removeElement(nums,3);
|
||||||
// int[] nums2 = new int[]{2,5,6};
|
System.out.println(nums);
|
||||||
// int n = 3;
|
System.out.println(length);
|
||||||
// int[] nums1 = new int[]{1};
|
|
||||||
// int m = 1;
|
|
||||||
// int[] nums2 = new int[]{};
|
|
||||||
// int n = 0;
|
|
||||||
// Solution.merge(nums1,m,nums2,n);
|
|
||||||
// String[] strs = new String[]{"flower","flow","flight"};
|
|
||||||
// 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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue