会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
蒋闯
博客园
首页
新随笔
联系
订阅
管理
2017年2月28日
LeetCode--Longest Common Prefix
摘要: 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)
编辑