You are given an integer array nums of size n.
For each index i where i n, consider the subarray nums[start ... i] where start i nums[i]
Return the total sum of the elements of all such subarrays.
Constraints:
n nums.length
nums[i]
You are given an integer array nums of size n.
For each index i where i n, consider the subarray nums[start ... i] where start i nums[i]
Return the total sum of the elements of all such subarrays.
Constraints:
n nums.length
nums[i]