会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
immjc
Don't live up to your ambition and sorry for your sufferings.
博客园
首页
新随笔
联系
订阅
管理
2017年11月17日
[LeetCode] Longest Common Prefix
摘要: Write a function to find the longest common prefix string amongst an array of strings. 找出字符串数组中最长的公共前缀。 思路:将字符串数组中每个字符串左对齐,排成一列,然后依次对比每个字符串的相同位置的字母。 如
阅读全文
posted @ 2017-11-17 20:20 immjc
阅读(124)
评论(0)
推荐(0)
公告