摘要:
题目: Write a function to find the longest common prefix string amongst an array of strings. 思路:求最长前缀子串,假设第一个字符串是最长前缀子串,采用增强for得到数组中每个字符串,分别与第一个字符串的同一位置 阅读全文
posted @ 2016-10-31 20:35
一只笨笨鸟
阅读(280)
评论(0)
推荐(0)
摘要:
题目: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 思路:与12题正好相反,罗马数字基本字符集:I V X L C D M (1 阅读全文
posted @ 2016-10-31 17:05
一只笨笨鸟
阅读(223)
评论(0)
推荐(0)
浙公网安备 33010602011771号