Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-,,-,,-,,,-,], Output: Explanation: [,-,,] has the largest sum = . 翻译: 给定一个整数组,找到相加之和最大的子数组,返回最大…