[LintCode] Continuous Subarray Sum 连续子数组之和
Posted Grandyang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[LintCode] Continuous Subarray Sum 连续子数组之和相关的知识,希望对你有一定的参考价值。
Given an integer array, find a continuous subarray where the sum of numbers is the biggest. Your code should return the index of the first number and the index of the last number. (If their are duplicate answer, return anyone)
Example
Give [-3, 1, 3, -3, 4]
, return [1,4]
.
以上是关于[LintCode] Continuous Subarray Sum 连续子数组之和的主要内容,如果未能解决你的问题,请参考以下文章
[LintCode] Longest Increasing Continuous Subsequence
[LintCode] Longest Increasing Continuous subsequence II
[LintCode] Continuous Subarray Sum 连续子数组之和
[LintCode] Longest Increasing Continuous Subsequence 最长连续递增子序列