You are given an horizontalCut of size verticalCut of size
horizontalCut[i] represents the cost to make a cut along horizontal line
verticalCut[j] represents the cost to make a cut along vertical line
In one operation, you can slice an existing piece of cake along a horizontal or vertical line into two pieces. The cost of the operation is the cost associated with that cut line.
Return the minimum total cost required to cut the entire cake into
Constraints:
horizontalCut.length
verticalCut.length
horizontalCut[i], verticalCut[i]
You are given an horizontalCut of size verticalCut of size
horizontalCut[i] represents the cost to make a cut along horizontal line
verticalCut[j] represents the cost to make a cut along vertical line
In one operation, you can slice an existing piece of cake along a horizontal or vertical line into two pieces. The cost of the operation is the cost associated with that cut line.
Return the minimum total cost required to cut the entire cake into
Constraints:
horizontalCut.length
verticalCut.length
horizontalCut[i], verticalCut[i]