https://oj.leetcode.com/problems/maximum-subarray/
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [−2,1,−3,4,−1,2,1,−5,4]
,
the contiguous subarray [4,−1,2,1]
has the largest sum = 6
.
'풀어본 Algorithm 문제 정리' 카테고리의 다른 글
[OJ.leetcode] binary-tree-zigzag-level-order-traversal (1) | 2014.08.01 |
---|---|
[OJ.leetcode] graycode (1) | 2014.07.30 |
[Oj.leetcode] swap-nodes-in-pair (0) | 2014.07.27 |
[OJ.leetcode] jump-game-ii (0) | 2014.07.22 |
[OJ.leetcode] minimum-depth-of-binary-tree (0) | 2014.07.22 |