摘要: 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)