mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 03:11:42 +08:00
add leetcode problem-cn part2
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<p>给定一个整数数组,找出总和最大的连续数列,并返回总和。</p>
|
||||
|
||||
<p><strong>示例:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong> [-2,1,-3,4,-1,2,1,-5,4]
|
||||
<strong>输出:</strong> 6
|
||||
<strong>解释:</strong> 连续子数组 [4,-1,2,1] 的和最大,为 6。
|
||||
</pre>
|
||||
|
||||
<p><strong>进阶:</strong></p>
|
||||
|
||||
<p>如果你已经实现复杂度为 O(<em>n</em>) 的解法,尝试使用更为精妙的分治法求解。</p>
|
Reference in New Issue
Block a user