leetcode 2 pointers
proudmore
这个作者很懒,什么都没留下…
展开
-
Leetcode Merge sorted array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B.原创 2015-03-24 13:45:24 · 121 阅读 · 0 评论 -
Leetcode Maximum products 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 contiguous subarray [2,3] has the largest produ原创 2015-04-01 06:54:26 · 126 阅读 · 0 评论 -
Leetcode Minimum size subarray
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn’t one, return 0 instead.For example, given the array [2,3,1,2,4,原创 2015-06-02 12:35:39 · 96 阅读 · 0 评论 -
Leetcode Susbstring with concatenation of all words
http://segmentfault.com/a/1190000002625580原创 2015-05-26 07:38:53 · 129 阅读 · 0 评论