03 2015 档案
LeetCode 笔记27 Two Sum III - Data structure design
摘要:Design and implement a TwoSum class. It should support the following operations:addandfind.add- Add the number to an internal data structure.find- Fin... 阅读全文
posted @ 2015-03-18 20:34 lichen782 阅读(593) 评论(0) 推荐(0)
LeetCode 笔记28 Maximum Gap
摘要:Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ... 阅读全文
posted @ 2015-03-11 22:19 lichen782 阅读(311) 评论(0) 推荐(0)
LeetCode 笔记26 Maximum Product Subarray
摘要:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the... 阅读全文
posted @ 2015-03-08 20:16 lichen782 阅读(302) 评论(0) 推荐(0)