会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Xylophone
CnBlogs
Contact
Admin
2014年8月22日
[LeetCode] Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.先把排好序的前两个字符串的最大前缀求出来,然后看这个前缀是否是其他字符串的前缀,如果不是,缩短这个前缀再看是否是其他字符串的前缀...
Read More
posted @ 2014-08-22 00:06 Xylophone
Views(150)
Comments(0)
Diggs(0)