diff options
| author | Paulo Custodio <pauloscustodio@gmail.com> | 2021-11-02 18:15:30 +0000 |
|---|---|---|
| committer | Paulo Custodio <pauloscustodio@gmail.com> | 2021-11-02 18:15:30 +0000 |
| commit | ba46d97a0cc88123fceac1767e823591121e35e9 (patch) | |
| tree | 8992f8a0ff9f101634b56bd9071332d697d3150e | |
| parent | 107836b85db9ead96118ceec84533f72c6d1f115 (diff) | |
| download | perlweeklychallenge-club-ba46d97a0cc88123fceac1767e823591121e35e9.tar.gz perlweeklychallenge-club-ba46d97a0cc88123fceac1767e823591121e35e9.tar.bz2 perlweeklychallenge-club-ba46d97a0cc88123fceac1767e823591121e35e9.zip | |
Whitespace
| -rw-r--r-- | challenge-136/paulo-custodio/python/ch-2.py | 27 | ||||
| -rw-r--r-- | challenge-137/paulo-custodio/perl/ch-2.pl | 2 |
2 files changed, 0 insertions, 29 deletions
diff --git a/challenge-136/paulo-custodio/python/ch-2.py b/challenge-136/paulo-custodio/python/ch-2.py index 91506afbac..be09093b3c 100644 --- a/challenge-136/paulo-custodio/python/ch-2.py +++ b/challenge-136/paulo-custodio/python/ch-2.py @@ -83,30 +83,3 @@ def count_combin_sum(n, terms): n = int(sys.argv[1]) fibs = fibonacci_upto(n) print(count_combin_sum(n, fibs)) - -# use Modern::Perl; -# use Math::Fibonacci 'term'; -# use Math::Combinatorics; -# use List::Util 'sum'; -# -# @ARGV or die "Usage: ch-2.pl n\n"; -# my $n = shift; -# my @fibs = fibs_upto($n); -# say count_combin_sum($n, @fibs); -# -# -# sub count_combin_sum { -# my($n, @fibs) = @_; -# my $count = 0; -# for my $k (1..@fibs) { -# my @combin = combine($k, @fibs); -# for (@combin) { -# my @combo = @$_; -# if (sum(@combo) == $n) { -# $count++; -# } -# } -# } -# return $count; -# } -# diff --git a/challenge-137/paulo-custodio/perl/ch-2.pl b/challenge-137/paulo-custodio/perl/ch-2.pl index 3d32a9d628..c35929554b 100644 --- a/challenge-137/paulo-custodio/perl/ch-2.pl +++ b/challenge-137/paulo-custodio/perl/ch-2.pl @@ -60,5 +60,3 @@ sub is_lychrel { } say is_lychrel(shift||0); - - |
