Help for this page

Select Code to Download


  1. or download this
    # initialisation as before
    
    $cur = $best = $array[$cur_start] if @array;
    ...
        $cur_start = $_ + 1;
      }
    }
    
  2. or download this
    #! /usr/bin/perl -w
    use strict;
    
    ...
    Sum: $best
    Numbers: @array[$best_start..$best_end]
    );