We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Greedy
- Cutting Boards
- Discussions
Cutting Boards
Cutting Boards
Sort by
recency
|
192 Discussions
|
Please Login in order to post a comment
For JS, remember to use BigInt, otherwise, test case 11 will be failed.
I don't understand the task. I'm already having problems understanding what the input numbers are supposed to represent.
what is the 1? 1x1 ? what is 2 2 = 2x2? what's the deal with modulo? don't understand this wild calculation
but it gets even crazier
what are 2 1 3 1 4 and 4 1 2 supposed to be anyway?
The ask is to cut the board in 1 X 1 pieces and there are horizontal and vertical markings present on the board that will help the person to cut them in 1 X 1 size of smaller boards and those markings have some cost associated with them. Now the task is to choose the sequence that cost you the minimum. Keep in mind the segments- check the Sample I/O example with explaination.
The board is 2 X 2 and you have to cut it in 1 X 1 pieces.