Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

[3,2,4,-1,-4]

Input: nums = [-2,1,-3,4,-1,2,1,-5,4]
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+4 =