[leetcode] Longest Common Prefix
摘要:
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.思路:找最长前缀,暴力法寻找。遍历整个容器,prefix记录了当前的最长前缀,将pre... 阅读全文
posted @ 2015-01-11 14:57 cha1992 阅读(121) 评论(0) 推荐(0) 编辑