You can break an existing piece of chocolate horizontally or vertically. You cannot break two or more pieces at once (so no cutting through stacks). |
.
.
.
.
(Scroll down if you really want
to see the Solution ...)
.
.
.
.
.
.
The Solution . . .
You need mn – 1 steps. By breaking an existing piece horizontally or vertically, you merely increase the total number of pieces by one. You already have 1 piece, so need mn – 1 steps to get to mn pieces. |
No comments:
Post a Comment