410 Split Array Largest Sum
1. Question
Input:
nums = [7,2,5,10,8]
m = 2
Output: 18
Explanation:
There are four ways to split nums into two subarrays.
The best way is to split it into [7,2,5] and [10,8],
where the largest sum among the two subarrays is only 18.2. Implementation
3. Time & Space Complexity
Last updated