- or download this
________ ________
| |____ | |____
...
| | |_________________________|
| | | a single strip |
|_________________________| |_________________________|
- or download this
________ ________
| |____ | |____
...
| | | | subproblem |
| | | subproblem| |
|_________________________| |___________|_____________|
- or download this
________ ________
| |____ |________|____
...
| | |___________| |
| | | |_____________|
|_________________________| |___________|_____________|
- or download this
use List::Util qw(min sum);
use strict;
...
reconstruct($split+1, $right, $height);
}
}
- or download this
you can solve this with 5 strips
strip of length 55, height 16
...
strip of length 15, height 8
strip of length 20, height 32
strip of length 10, height 24