An array of non negative integers nums is partitioned into three nonempty contiguous subarrays: left, mid, and right.
A partition is considered valid if:
The sum of elements in left is less than or equal to the sum of elements in mid.
The sum of elements in mid is less than or equal to the sum of elements in right.
Given the integer array nums, return the number of valid ways to partition nums. Since the answer may be large, return it modulo
Constraints:
nums.length
nums[i]
An array of non negative integers nums is partitioned into three nonempty contiguous subarrays: left, mid, and right.
A partition is considered valid if:
The sum of elements in left is less than or equal to the sum of elements in mid.
The sum of elements in mid is less than or equal to the sum of elements in right.
Given the integer array nums, return the number of valid ways to partition nums. Since the answer may be large, return it modulo
Constraints:
nums.length
nums[i]