1/2(-3-3)(-3+4)
int[] list[][] = { { 2, 3, 4}, { 1, 2}, { -3, 4, 5,6 } }
[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: leetcode.com
int[] list[][] = { { 2, 3, 4}, { 1, 2}, { -3, 4, 5,6 } }
Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6.