摘要:
Given an array of integers, find two non-overlapping subarrays which have the largest sum. The number in each subarray should be contiguous. Return th 阅读全文
posted @ 2016-04-02 11:33
YuriFLAG
阅读(209)
评论(0)
推荐(0)
摘要:
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic 阅读全文
posted @ 2016-04-02 10:31
YuriFLAG
阅读(151)
评论(0)
推荐(0)
摘要:
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 ex 阅读全文
posted @ 2016-04-02 09:39
YuriFLAG
阅读(156)
评论(0)
推荐(0)
摘要:
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2016-04-02 09:09
YuriFLAG
阅读(132)
评论(0)
推荐(0)
摘要:
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime 阅读全文
posted @ 2016-04-02 09:03
YuriFLAG
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号