You are given an integer array nums and two integers k and m.
Find the maximum possible sum of k disjoint subarrays of nums such that each chosen subarray has a length of at least m.
Return this maximum sum.
Constraints:
nums.length
nums[i]
k nums.length m
m
You are given an integer array nums and two integers k and m.
Find the maximum possible sum of k disjoint subarrays of nums such that each chosen subarray has a length of at least m.
Return this maximum sum.
Constraints:
nums.length
nums[i]
k nums.length m
m