Count the good ways to split an array.
Unlock detailed company stats for this questionUpgrade
Given an array of non-negative integers, split it into three non-empty contiguous subarrays A1, A2, A3 with sums S1, S2, S3. Count the number of valid splits such that S2 <= S1 + S3. Return the answer modulo 10^9 + 7.
Community answers
No answers contributed by the community yet.
Related questions
Count the ways to split an array so every subset sums to 1.Count the number of ways to split a string.Count the ways to split a digit string into prime numbers.Related courses

Course

Course
Course
