On 2014-02-21, Marek Novotny <(E-Mail Removed)> wrote:
> #!/usr/bin/perl
> # File: Obj8-2.pl
> use strict;
> use warnings;
>
> my @array=(5,4,3,1,7,23,12,5,43,29,32,18,49);
> my $answer = 0;
Your algorithm only works for a non-empty array of non-negative numbers.
> #!/usr/bin/perl
> # File: Obj8-2.pl
> use strict;
> use warnings;
>
> my @array=(5,4,3,1,7,23,12,5,43,29,32,18,49);
> my $answer = 0;
Your algorithm only works for a non-empty array of non-negative numbers.
Aucun commentaire:
Enregistrer un commentaire