摘要:
Write a function to find the longest common prefix string amongst an array of strings.从字符数组的第一项往后挨个比较。第一次比较后,取第一项与第二项共同的前缀与第三项比较,依此类推。public class Solution { public String longestCommonPrefix(String[] strs) { // IMPORTANT: Please reset any member data you declared, as // the same So... 阅读全文