摘要: 题目:Write a function to find the longest common prefix string amongst an array of strings. 这题的意思是,求字符串数组中的所有字符串的公共头。 解题思路:由于要求所有字符串的公共头,和求几个整数的公约数一样。我们 阅读全文
posted @ 2017-11-13 17:52 contixue 阅读(148) 评论(0) 推荐(0) 编辑