You are given an integer array nums and three integers m, l, and r.
Select at least m pairwise disjoint subarrays from nums such that the length of each chosen subarray is between l and r, inclusive.
Return the maximum possible total sum of the elements in the chosen subarrays.
Constraints:
n nums.length
nums[i]
m n
l r n
You are given an integer array nums and three integers m, l, and r.
Select at least m pairwise disjoint subarrays from nums such that the length of each chosen subarray is between l and r, inclusive.
Return the maximum possible total sum of the elements in the chosen subarrays.
Constraints:
n nums.length
nums[i]
m n
l r n