← ALL NOTES
Array

2270. Number of Ways to Split Array

Given nums, a split at index i (0 ≤ i < n−1) is valid if the sum of the first i+1 elements is ≥ the sum of the rest. Count valid splits. Count positions where the left prefix sum is at least the…

Loading…