Leetcode Simple_14 最长公共前缀

我的思路 1. 找到最短的string和最小长度 2. 对每个字符串进行loop,如果某个字母不相等直接return 题解思路 1. 找到最短的String和最小长度 2. 对最短的string,用二分查找来匹配。
相关文章
相关标签/搜索