随笔分类 -  细节题

摘要:1.题目描述 Implement int sqrt(int x). Compute and return the square root of x. 2.解法分析... 阅读全文
posted @ 2013-08-27 15:33 曾见绝美的阳光 阅读(185) 评论(0) 推荐(0)
摘要:1.题目描述 Given a number represented as an array of digits, plus one to the number. 2.解法分析 不要被常规思路限制住,常规思路会遍历整个数组... 阅读全文
posted @ 2013-08-27 11:54 曾见绝美的阳光 阅读(350) 评论(0) 推荐(0)
摘要:1.题目描述 Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2... 阅读全文
posted @ 2013-08-27 00:45 曾见绝美的阳光 阅读(563) 评论(0) 推荐(0)
摘要:1.题目描述 Divide two integers without using multiplication, division and mod operator. 2.解法分析 不用乘除求模运算,一个很容易让人想到的就是用... 阅读全文
posted @ 2013-08-24 23:09 曾见绝美的阳光 阅读(509) 评论(0) 推荐(0)
摘要:1.题目分析 Write a function to find the longest common prefix string amongst an array of strings. 2.解法分析 最近的几个leetcod... 阅读全文
posted @ 2013-08-20 22:02 曾见绝美的阳光 阅读(270) 评论(0) 推荐(0)
摘要:1.题目描述 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If yo... 阅读全文
posted @ 2013-08-20 16:50 曾见绝美的阳光 阅读(271) 评论(0) 推荐(0)
摘要:1.题目描述 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could ... 阅读全文
posted @ 2013-08-20 16:49 曾见绝美的阳光 阅读(330) 评论(0) 推荐(0)
摘要:1.题目描述 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 ... 阅读全文
posted @ 2013-08-19 22:21 曾见绝美的阳光 阅读(249) 评论(0) 推荐(0)