[LeetCode] 53. Maximum Subarray 最大子数组和

Given an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Ex
posted @ 2015-03-30 09:20  Grandyang  阅读(43793)  评论(11)    收藏  举报
Fork me on GitHub