题目链接Leetcode_剑指_Offer_42-连续子数组的最大和关键词{% label 前缀和 blue %}解析用前缀和,然后用 sums[i] 减去 sums[1 ~ i - 1],求 max 即可代码Author:CoderWddURL:https://www.wuinsights.top//article/ae7e58c24fd0Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!Relate PostsLeetcode 2923. 找到冠军 ILeetcode1026. 节点与其祖先之间的最大差值Leetcode 1702. 修改后的最大二进制字符串Leetcode 894. 所有可能的真二叉树Leetcode_64-最小路径和Leetcode_907-子数组的最小值之和OkHttp 宏观调用分析Leetcode_146-LRU缓存