You are given an integer array nums of size
A split is defined by choosing an index i such that
A prefix consisting of elements from index i inclusive.
A suffix consisting of elements from index
The score of a split at index i is calculated as the sum of the elements in the prefix minus the minimum element in the suffix:
You are given an integer array nums of size
A split is defined by choosing an index i such that
A prefix consisting of elements from index i inclusive.
A suffix consisting of elements from index
The score of a split at index i is calculated as the sum of the elements in the prefix minus the minimum element in the suffix: