Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    exit;
    
  2. or download this
    ->       Calls: 1     Depth: 1     Share: [  ]       Target: 5     Tre
    +asures: [ 50 2 4 3 1 2 4 8 ] ... Putting "50" into the share, leaving
    + treasures [ 2 4 3 1 2 4 8 ]
    
    ...
    A recursive call at depth 3 found that a solution of [ 2 3 ] adds up t
    +o my target of 5 at depth 2
    
    Solution: 2 3
    
  3. or download this
    #!/usr/bin/perl
    
    ...
       return $total;
    }
    
  4. or download this
    Looking for numbers that add up to target: 5...
    Adding up [ 2 + 4 ] = 6
    Adding up [ 2 + 3 ] = 5
    Solution: 2 3
    Calls: 4