2017年2月28日
摘要: Write a function to find the longest common prefix string amongst an array of strings. 找出所有字符串的最长公共前缀. 思路:首先比较前两个字符串的公共部分,将其公共部分放到prefix中,然后再拿prefix和第 阅读全文
posted @ 2017-02-28 11:06 蒋闯 阅读(129) 评论(0) 推荐(0) 编辑