public class Solution { public static final String EMPTY = ""; /** * @param strs string字符串一维数组 * @return string字符串 */ public String longestCommonPrefix(String[] strs) { // 参数检测 if (strs == null || strs.length == 0) { return EMPTY; } if (strs.length == 1) { return ...