Question: Create rectangles 2 Given a rectangle with dimensions N ' M and an integer K . You divid this rectangle into smaller sub - rectangles
Create rectangles
Given a rectangle with dimensions NM and an integer K You divid this rectangle into smaller subrectangles such that the given conditions are satisfied:
Subrectangles must be parallel to the axis of the larger rectangle with dimensions NM
Every subrectangle has at least one edge on the larger rectangle edge. Informally, there is no subrectangle that is surrounded by other subrectangles.
For a subrectangle with area S the cost of this subrectangle is SK
Calculate the minimum total cost to divide the larger rectangle into smaller subrectangles.
Note: All subrectangles must have an integral length of dimensions
Function description
Complete the solve function. This function takes the following parameters and returns the required answer:
N: Represents the value of N
M Represents the value of M
K: Represents the value of Kh
get answer in java programming languages
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
