更新 test.java

master
wangsiyuan 2023-09-06 12:01:01 +08:00
parent ec10ce6c8a
commit 755fdc488a
1 changed files with 9 additions and 5 deletions

View File

@ -8,14 +8,18 @@ import java.util.stream.Collectors;
public class test {
public static void main(String[] args) {
int[] nums1 = new int[]{1,2,3,0,0,0};
int m = 3;
int[] nums2 = new int[]{2,5,6};
int n = 3;
// int[] nums1 = new int[]{1,2,3,0,0,0};
// int m = 3;
// int[] nums2 = new int[]{2,5,6};
// int n = 3;
// int[] nums1 = new int[]{1};
// int m = 1;
// int[] nums2 = new int[]{};
// int n = 0;
Solution.merge(nums1,m,nums2,n);
// Solution.merge(nums1,m,nums2,n);
String[] strs = new String[]{"flower","flow","flight"};
String result = Solution.longestCommonPrefix(strs);
System.out.println(result);
}
}