From e57ebeadf8919a485b00d76ae4348ce86db2c422 Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Wed, 6 Sep 2023 14:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20test.java?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/solution/test.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/solution/test.java b/src/solution/test.java index 46577af..29539f2 100644 --- a/src/solution/test.java +++ b/src/solution/test.java @@ -17,7 +17,9 @@ public class test { // 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","flow","flight"}; + String[] strs = new String[]{"abcg","abcecar","abr"}; + String result = Solution.longestCommonPrefix(strs); System.out.println(result); }