摘要: 1.题目描述 Write a function to find the longest common prefix string amongst an array of strings. 找到一组字符串的最长前缀。 2.我的分析思路 这一题的第一思路就是,把第一个字符串作为基准,遍历每个子字符串,然 阅读全文
posted @ 2017-02-12 21:06 飞轩 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 2.我的分析思路 罗马数字转成阿拉伯数字,这里面需要知道罗马数字的构成 阅读全文
posted @ 2017-02-12 20:58 飞轩 阅读(2575) 评论(0) 推荐(1) 编辑
摘要: 1.题目描述 Given a string, find the length of the longest substring without repeating characters. Examples: Given =="abcabcbb"==, the answer is =="abc"==, 阅读全文
posted @ 2017-02-12 20:43 飞轩 阅读(203) 评论(0) 推荐(0) 编辑