Given an integer array nums, choose an index i to split nums into two non empty parts: the left part nums[0..i] and the right part nums[i+1..n-1], where n is the length of nums.
A split at index i is considered valid if the sum of the left part is greater than or equal to the sum of the right part. Return the total number of valid split indices i.
Constraints:
nums.length
nums[i]
Given an integer array nums, choose an index i to split nums into two non empty parts: the left part nums[0..i] and the right part nums[i+1..n-1], where n is the length of nums.
A split at index i is considered valid if the sum of the left part is greater than or equal to the sum of the right part. Return the total number of valid split indices i.
Constraints:
nums.length
nums[i]