![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 65
iJulyl
这个作者很懒,什么都没留下…
展开
-
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the sam原创 2017-03-28 12:36:35 · 214 阅读 · 0 评论 -
7. Reverse Integer
这是一道基本的对数字操作的题,除却简单外还需要注重细节,这道题就是注意 Integer的溢出问题。1. 功能的实现: result = result * 10 + x % 10;2. 溢出的检测:a) The absolute value of Integer's minimum is larger 1 than Integer's maximum. To the fina原创 2017-11-22 15:00:31 · 166 阅读 · 0 评论 -
9. Roman to Integer
Description:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Conversion Rule:基本字符IVXL原创 2017-11-23 06:23:41 · 204 阅读 · 0 评论 -
14. Longest Common Prefix
Description:Write a function to find the longest common prefix string amongst an array of strings.Solution:1. Firstly, judge if it is null.2. To each String in String[], use String[i] to e原创 2017-11-23 15:23:45 · 168 阅读 · 0 评论 -
20. Valid Parentheses
Description:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()原创 2017-11-25 11:50:41 · 190 阅读 · 0 评论