You are given an integer array nums and an integer k.
You need to partition nums into k contiguous non empty subarrays. The score of a subarray with sum
The total score of a partition is the sum of the scores of all its subarrays.
Return the minimum total score possible after partitioning nums into k subarrays.
Constraints:
nums.length
nums[i]
k nums.length
You are given an integer array nums and an integer k.
You need to partition nums into k contiguous non empty subarrays. The score of a subarray with sum
The total score of a partition is the sum of the scores of all its subarrays.
Return the minimum total score possible after partitioning nums into k subarrays.
Constraints:
nums.length
nums[i]
k nums.length