You are given an integer array nums.
A split at index i (where nums.length
left consisting of elements from index i
right consisting of elements from index i + 1 to nums.length
A split is considered valid if:
left is strictly increasing
right is strictly decreasing
Return the minimum absolute difference between the sum of elements in left and the sum of elements in right among all valid splits. If no valid split exists, return
Constraints:
nums.length
nums[i]
You are given an integer array nums.
A split at index i (where nums.length
left consisting of elements from index i
right consisting of elements from index i + 1 to nums.length
A split is considered valid if:
left is strictly increasing
right is strictly decreasing
Return the minimum absolute difference between the sum of elements in left and the sum of elements in right among all valid splits. If no valid split exists, return
Constraints:
nums.length
nums[i]