Help for this page

Select Code to Download


  1. or download this
                 ________                         ________
                |        |____                   |        |____    
    ...
    |                         |      |_________________________|   
    |                         |      |     a single strip      |   
    |_________________________|      |_________________________|
    
  2. or download this
                 ________                         ________
                |        |____                   |        |____    
    ...
    |                         |      |           | subproblem  |   
    |                         |      | subproblem|             |   
    |_________________________|      |___________|_____________|
    
  3. or download this
                 ________                            ________
                |        |____                      |________|____    
    ...
    |                         |         |___________|             |   
    |                         |         |           |_____________|   
    |_________________________|         |___________|_____________|
    
  4. or download this
    use List::Util qw(min sum);
    use strict;
    ...
            reconstruct($split+1, $right, $height);
        }
    }
    
  5. 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