摘要: 1.题目描述 Given an array of non-negative integers, you are initially positioned at the first index of the array. Eac... 阅读全文
posted @ 2013-08-27 22:21 曾见绝美的阳光 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given an array of non-negative integers, you are initially positioned at the first index of the array. Eac... 阅读全文
posted @ 2013-08-27 21:26 曾见绝美的阳光 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Implement int sqrt(int x). Compute and return the square root of x. 2.解法分析... 阅读全文
posted @ 2013-08-27 15:33 曾见绝美的阳光 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a number represented as an array of digits, plus one to the number. 2.解法分析 不要被常规思路限制住,常规思路会遍历整个数组... 阅读全文
posted @ 2013-08-27 11:54 曾见绝美的阳光 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2... 阅读全文
posted @ 2013-08-27 00:45 曾见绝美的阳光 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). ... 阅读全文
posted @ 2013-08-27 00:01 曾见绝美的阳光 阅读(235) 评论(0) 推荐(0) 编辑