You are given two integer arrays nums and cost of equal length, and an integer k.
You need to partition the array nums into one or more non-empty contiguous subarrays.
Suppose the array is divided into
The cost of this
Return the minimum total cost to divide the array into subarrays.
Constraints:
nums.length
cost.length nums.length
nums[i], cost[i]
k
You are given two integer arrays nums and cost of equal length, and an integer k.
You need to partition the array nums into one or more non-empty contiguous subarrays.
Suppose the array is divided into
The cost of this
Return the minimum total cost to divide the array into subarrays.
Constraints:
nums.length
cost.length nums.length
nums[i], cost[i]
k