摘要: 方法一: 思路:比如输入:strs = ["flower","flow","flight"] 先用strs[0]与strs[1]对比,得出最长公共前缀,然后再用此前缀去对比strs[3]. class Solution { public: string longestCommonPrefix(vec 阅读全文
posted @ 2019-06-12 16:26 菜鸟创业梦 阅读(116) 评论(0) 推荐(0) 编辑