aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2019-10-17 18:40:33 +0100
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2019-10-17 18:40:33 +0100
commit2923da8298961357ba653b24d3e6f39e32bf25d7 (patch)
tree0a7c31bafedcdd145c9e882f47485f2784276220
parentb20d2cc01c2073e7686ad7e8b116a5b060816b5c (diff)
downloadperlweeklychallenge-club-2923da8298961357ba653b24d3e6f39e32bf25d7.tar.gz
perlweeklychallenge-club-2923da8298961357ba653b24d3e6f39e32bf25d7.tar.bz2
perlweeklychallenge-club-2923da8298961357ba653b24d3e6f39e32bf25d7.zip
- Added solutions by Darren Bottin.
-rw-r--r--challenge-030/darren-bottin/README1
-rw-r--r--challenge-030/darren-bottin/perl5/ch-1.pl11
-rw-r--r--challenge-030/darren-bottin/perl5/ch-2.pl14
-rw-r--r--members.json1
-rw-r--r--stats/pwc-challenge-001.json422
-rw-r--r--stats/pwc-challenge-002.json332
-rw-r--r--stats/pwc-challenge-003.json390
-rw-r--r--stats/pwc-challenge-004.json516
-rw-r--r--stats/pwc-challenge-005.json190
-rw-r--r--stats/pwc-challenge-006.json358
-rw-r--r--stats/pwc-challenge-007.json176
-rw-r--r--stats/pwc-challenge-008.json216
-rw-r--r--stats/pwc-challenge-009.json216
-rw-r--r--stats/pwc-challenge-010.json422
-rw-r--r--stats/pwc-challenge-011.json212
-rw-r--r--stats/pwc-challenge-012.json450
-rw-r--r--stats/pwc-challenge-013.json210
-rw-r--r--stats/pwc-challenge-014.json258
-rw-r--r--stats/pwc-challenge-015.json262
-rw-r--r--stats/pwc-challenge-016.json228
-rw-r--r--stats/pwc-challenge-017.json236
-rw-r--r--stats/pwc-challenge-018.json252
-rw-r--r--stats/pwc-challenge-019.json240
-rw-r--r--stats/pwc-challenge-020.json518
-rw-r--r--stats/pwc-challenge-021.json220
-rw-r--r--stats/pwc-challenge-022.json178
-rw-r--r--stats/pwc-challenge-023.json404
-rw-r--r--stats/pwc-challenge-024.json220
-rw-r--r--stats/pwc-challenge-025.json328
-rw-r--r--stats/pwc-challenge-026.json392
-rw-r--r--stats/pwc-challenge-027.json168
-rw-r--r--stats/pwc-challenge-028.json234
-rw-r--r--stats/pwc-challenge-029.json452
-rw-r--r--stats/pwc-current.json359
-rw-r--r--stats/pwc-language-breakdown-summary.json52
-rw-r--r--stats/pwc-language-breakdown.json272
-rw-r--r--stats/pwc-leaders.json886
-rw-r--r--stats/pwc-master-stats.json138
-rw-r--r--stats/pwc-summary-1-30.json138
-rw-r--r--stats/pwc-summary-121-150.json42
-rw-r--r--stats/pwc-summary-31-60.json68
-rw-r--r--stats/pwc-summary-61-90.json118
-rw-r--r--stats/pwc-summary-91-120.json130
-rw-r--r--stats/pwc-summary.json136
44 files changed, 5564 insertions, 5502 deletions
diff --git a/challenge-030/darren-bottin/README b/challenge-030/darren-bottin/README
new file mode 100644
index 0000000000..6c792afe8e
--- /dev/null
+++ b/challenge-030/darren-bottin/README
@@ -0,0 +1 @@
+Solutions by Darren Bottin.
diff --git a/challenge-030/darren-bottin/perl5/ch-1.pl b/challenge-030/darren-bottin/perl5/ch-1.pl
new file mode 100644
index 0000000000..57a3737a53
--- /dev/null
+++ b/challenge-030/darren-bottin/perl5/ch-1.pl
@@ -0,0 +1,11 @@
+#!perl
+use strict;
+use warnings;
+
+#Task 1
+use POSIX;
+for my $year (2019..2100) {
+ my $date = POSIX::strftime ("%w %Y-%m-%d",
+ 0, 0, 0, 25, 11, $year-1900);
+ print "$date is a Sunday Christmas\n" if $date =~ s/^0 //g;
+}
diff --git a/challenge-030/darren-bottin/perl5/ch-2.pl b/challenge-030/darren-bottin/perl5/ch-2.pl
new file mode 100644
index 0000000000..6c20a4718d
--- /dev/null
+++ b/challenge-030/darren-bottin/perl5/ch-2.pl
@@ -0,0 +1,14 @@
+#!perl
+use strict;
+use warnings;
+
+my %solutions;
+for my $foo (1..10) {
+ for my $bar ($foo+1..11-$foo) {
+ my $baz = 12 - $foo - $bar;
+ my @sorted = sort ($foo, $bar, $baz);
+ my $asoln = join ("\+", @sorted);
+ $solutions{$asoln}++;
+ }
+}
+print "$_ = 12\n" foreach sort keys %solutions;
diff --git a/members.json b/members.json
index 1ae78d5bc3..8955acea9b 100644
--- a/members.json
+++ b/members.json
@@ -21,6 +21,7 @@
"colin-crain" : "Colin Crain",
"daniel-mantovani" : "Daniel Mantovani",
"daniel-mita" : "Daniel Mita",
+ "darren-bottin" : "Darren Bottin",
"dave-cross" : "Dave Cross",
"dave-jacoby" : "Dave Jacoby",
"david-kayal" : "David Kayal",
diff --git a/stats/pwc-challenge-001.json b/stats/pwc-challenge-001.json
index effda0f1ed..baca3ad92b 100644
--- a/stats/pwc-challenge-001.json
+++ b/stats/pwc-challenge-001.json
@@ -1,68 +1,47 @@
{
- "xAxis" : {
- "type" : "category"
- },
- "chart" : {
- "type" : "column"
- },
"plotOptions" : {
"series" : {
+ "borderWidth" : 0,
"dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
- },
- "borderWidth" : 0
- }
- },
- "title" : {
- "text" : "Perl Weekly Challenge - 001"
- },
- "legend" : {
- "enabled" : 0
- },
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
+ "format" : "{point.y}",
+ "enabled" : 1
+ }
}
},
- "tooltip" : {
- "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>",
- "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
- "followPointer" : 1
- },
"series" : [
{
+ "colorByPoint" : 1,
"name" : "Perl Weekly Challenge - 001",
"data" : [
{
"drilldown" : "Adam Russell",
- "name" : "Adam Russell",
- "y" : 3
+ "y" : 3,
+ "name" : "Adam Russell"
},
{
"name" : "Ailbhe Tweedie",
- "drilldown" : "Ailbhe Tweedie",
- "y" : 1
+ "y" : 1,
+ "drilldown" : "Ailbhe Tweedie"
},
{
- "drilldown" : "Alex Daniel",
"name" : "Alex Daniel",
+ "drilldown" : "Alex Daniel",
"y" : 2
},
{
- "name" : "Andrezgz",
+ "y" : 2,
"drilldown" : "Andrezgz",
- "y" : 2
+ "name" : "Andrezgz"
},
{
+ "name" : "Antonio Gamiz",
"y" : 2,
- "drilldown" : "Antonio Gamiz",
- "name" : "Antonio Gamiz"
+ "drilldown" : "Antonio Gamiz"
},
{
+ "drilldown" : "Arne Sommer",
"y" : 5,
- "name" : "Arne Sommer",
- "drilldown" : "Arne Sommer"
+ "name" : "Arne Sommer"
},
{
"y" : 2,
@@ -71,43 +50,43 @@
},
{
"drilldown" : "Athanasius",
- "name" : "Athanasius",
- "y" : 2
+ "y" : 2,
+ "name" : "Athanasius"
},
{
- "y" : 2,
+ "name" : "Bob Kleemann",
"drilldown" : "Bob Kleemann",
- "name" : "Bob Kleemann"
+ "y" : 2
},
{
- "y" : 1,
"name" : "Daniel Mantovani",
+ "y" : 1,
"drilldown" : "Daniel Mantovani"
},
{
+ "name" : "Dave Cross",
"y" : 3,
- "drilldown" : "Dave Cross",
- "name" : "Dave Cross"
+ "drilldown" : "Dave Cross"
},
{
- "drilldown" : "Dave Jacoby",
"name" : "Dave Jacoby",
+ "drilldown" : "Dave Jacoby",
"y" : 2
},
{
+ "y" : 2,
"drilldown" : "David Kayal",
- "name" : "David Kayal",
- "y" : 2
+ "name" : "David Kayal"
},
{
+ "y" : 2,
"drilldown" : "Doug Schrag",
- "name" : "Doug Schrag",
- "y" : 2
+ "name" : "Doug Schrag"
},
{
"drilldown" : "Dr James A. Smith",
- "name" : "Dr James A. Smith",
- "y" : 4
+ "y" : 4,
+ "name" : "Dr James A. Smith"
},
{
"y" : 2,
@@ -115,68 +94,68 @@
"name" : "Duncan C. White"
},
{
+ "y" : 2,
"drilldown" : "Eddy HS",
- "name" : "Eddy HS",
- "y" : 2
+ "name" : "Eddy HS"
},
{
"y" : 2,
- "name" : "Finley",
- "drilldown" : "Finley"
+ "drilldown" : "Finley",
+ "name" : "Finley"
},
{
- "y" : 1,
"name" : "Fred Zinn",
- "drilldown" : "Fred Zinn"
+ "drilldown" : "Fred Zinn",
+ "y" : 1
},
{
+ "y" : 2,
"drilldown" : "Freddie B",
- "name" : "Freddie B",
- "y" : 2
+ "name" : "Freddie B"
},
{
"name" : "Gustavo Chaves",
- "drilldown" : "Gustavo Chaves",
- "y" : 1
+ "y" : 1,
+ "drilldown" : "Gustavo Chaves"
},
{
- "y" : 2,
+ "name" : "JJ Merelo",
"drilldown" : "JJ Merelo",
- "name" : "JJ Merelo"
+ "y" : 2
},
{
- "y" : 4,
"name" : "Jaldhar H. Vyas",
+ "y" : 4,
"drilldown" : "Jaldhar H. Vyas"
},
{
+ "y" : 2,
"drilldown" : "Jeff",
- "name" : "Jeff",
- "y" : 2
+ "name" : "Jeff"
},
{
"name" : "Jeremy Carman",
- "drilldown" : "Jeremy Carman",
- "y" : 2
+ "y" : 2,
+ "drilldown" : "Jeremy Carman"
},
{
- "y" : 1,
"name" : "Jim Bacon",
+ "y" : 1,
"drilldown" : "Jim Bacon"
},
{
+ "name" : "Jo Christian Oterhals",
"y" : 5,
- "drilldown" : "Jo Christian Oterhals",
- "name" : "Jo Christian Oterhals"
+ "drilldown" : "Jo Christian Oterhals"
},
{
- "y" : 4,
"name" : "Joelle Maslak",
+ "y" : 4,
"drilldown" : "Joelle Maslak"
},
{
- "y" : 1,
"name" : "John Barrett",
+ "y" : 1,
"drilldown" : "John Barrett"
},
{
@@ -185,14 +164,14 @@
"y" : 2
},
{
- "drilldown" : "Khalid",
"name" : "Khalid",
- "y" : 2
+ "y" : 2,
+ "drilldown" : "Khalid"
},
{
+ "name" : "Kian-Meng Ang",
"y" : 3,
- "drilldown" : "Kian-Meng Ang",
- "name" : "Kian-Meng Ang"
+ "drilldown" : "Kian-Meng Ang"
},
{
"y" : 2,
@@ -200,39 +179,39 @@
"name" : "Kivanc Yazan"
},
{
- "y" : 4,
+ "name" : "Lars Balker",
"drilldown" : "Lars Balker",
- "name" : "Lars Balker"
+ "y" : 4
},
{
- "y" : 4,
"name" : "Laurent Rosenfeld",
+ "y" : 4,
"drilldown" : "Laurent Rosenfeld"
},
{
- "y" : 2,
"drilldown" : "Mark Senn",
+ "y" : 2,
"name" : "Mark Senn"
},
{
- "y" : 2,
+ "name" : "Martin Mugeni",
"drilldown" : "Martin Mugeni",
- "name" : "Martin Mugeni"
+ "y" : 2
},
{
- "name" : "Neil Bowers",
"drilldown" : "Neil Bowers",
- "y" : 1
+ "y" : 1,
+ "name" : "Neil Bowers"
},
{
+ "name" : "Nick Logan",
"y" : 4,
- "drilldown" : "Nick Logan",
- "name" : "Nick Logan"
+ "drilldown" : "Nick Logan"
},
{
+ "name" : "Oleksii Tsvietnov",
"y" : 2,
- "drilldown" : "Oleksii Tsvietnov",
- "name" : "Oleksii Tsvietnov"
+ "drilldown" : "Oleksii Tsvietnov"
},
{
"y" : 2,
@@ -240,86 +219,98 @@
"name" : "Ozzy"
},
{
- "name" : "Pavel Jurca",
+ "y" : 2,
"drilldown" : "Pavel Jurca",
- "y" : 2
+ "name" : "Pavel Jurca"
},
{
+ "drilldown" : "Pete Houston",
"y" : 2,
- "name" : "Pete Houston",
- "drilldown" : "Pete Houston"
+ "name" : "Pete Houston"
},
{
+ "name" : "Philippe Bruhat",
"y" : 3,
- "drilldown" : "Philippe Bruhat",
- "name" : "Philippe Bruhat"
+ "drilldown" : "Philippe Bruhat"
},
{
+ "name" : "Prajith P",
"y" : 1,
- "drilldown" : "Prajith P",
- "name" : "Prajith P"
+ "drilldown" : "Prajith P"
},
{
"y" : 2,
- "name" : "Sean Meininger",
- "drilldown" : "Sean Meininger"
+ "drilldown" : "Sean Meininger",
+ "name" : "Sean Meininger"
},
{
"y" : 6,
- "name" : "Simon Proctor",
- "drilldown" : "Simon Proctor"
+ "drilldown" : "Simon Proctor",
+ "name" : "Simon Proctor"
},
{
"drilldown" : "Simon Reinhardt",
- "name" : "Simon Reinhardt",
- "y" : 2
+ "y" : 2,
+ "name" : "Simon Reinhardt"
},
{
- "drilldown" : "Steve Rogerson",
"name" : "Steve Rogerson",
- "y" : 4
+ "y" : 4,
+ "drilldown" : "Steve Rogerson"
},
{
- "drilldown" : "Steven Wilson",
"name" : "Steven Wilson",
- "y" : 2
+ "y" : 2,
+ "drilldown" : "Steven Wilson"
},
{
+ "drilldown" : "Tiago Stock",
"y" : 1,
- "name" : "Tiago Stock",
- "drilldown" : "Tiago Stock"
+ "name" : "Tiago Stock"
},
{
- "y" : 2,
"name" : "Tore Andersson",
- "drilldown" : "Tore Andersson"
+ "drilldown" : "Tore Andersson",
+ "y" : 2
},
{
- "y" : 1,
"name" : "Veesh Goldman",
+ "y" : 1,
"drilldown" : "Veesh Goldman"
},
{
- "drilldown" : "William Gilmore",
"name" : "William Gilmore",
- "y" : 1
+ "y" : 1,
+ "drilldown" : "William Gilmore"
},
{
- "name" : "Yet Ebreo",
+ "y" : 4,
"drilldown" : "Yet Ebreo",
- "y" : 4
+ "name" : "Yet Ebreo"
}
- ],
- "colorByPoint" : 1
+ ]
}
],
+ "tooltip" : {
+ "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
+ "followPointer" : 1,
+ "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
"subtitle" : {
- "text" : "[Champions: 55] Last updated at 2019-10-16 19:58:45 GMT"
+ "text" : "[Champions: 55] Last updated at 2019-10-17 17:38:08 GMT"
+ },
+ "xAxis" : {
+ "type" : "category"
+ },
+ "title" : {
+ "text" : "Perl Weekly Challenge - 001"
},
"drilldown" : {
"series" : [
{
- "name" : "Adam Russell",
"id" : "Adam Russell",
"data" : [
[
@@ -330,36 +321,37 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Adam Russell"
},
{
+ "id" : "Ailbhe Tweedie",
+ "name" : "Ailbhe Tweedie",
"data" : [
[
"Perl 5",
1
]
- ],
- "id" : "Ailbhe Tweedie",
- "name" : "Ailbhe Tweedie"
+ ]
},
{
"id" : "Alex Daniel",
- "name" : "Alex Daniel",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "name" : "Alex Daniel"
},
{
+ "name" : "Andrezgz",
"data" : [
[
"Perl 5",
2
]
],
- "name" : "Andrezgz",
"id" : "Andrezgz"
},
{
@@ -374,7 +366,6 @@
},
{
"id" : "Arne Sommer",
- "name" : "Arne Sommer",
"data" : [
[
"Perl 5",
@@ -388,21 +379,22 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Arne Sommer"
},
{
"name" : "Arpad Toth",
- "id" : "Arpad Toth",
"data" : [
[
"Perl 5",
2
]
- ]
+ ],
+ "id" : "Arpad Toth"
},
{
- "name" : "Athanasius",
"id" : "Athanasius",
+ "name" : "Athanasius",
"data" : [
[
"Perl 5",
@@ -411,28 +403,27 @@
]
},
{
+ "id" : "Bob Kleemann",
+ "name" : "Bob Kleemann",
"data" : [
[
"Perl 5",
2
]
- ],
- "name" : "Bob Kleemann",
- "id" : "Bob Kleemann"
+ ]
},
{
- "name" : "Daniel Mantovani",
- "id" : "Daniel Mantovani",
"data" : [
[
"Perl 5",
1
]
- ]
+ ],
+ "name" : "Daniel Mantovani",
+ "id" : "Daniel Mantovani"
},
{
"name" : "Dave Cross",
- "id" : "Dave Cross",
"data" : [
[
"Perl 5",
@@ -442,11 +433,11 @@
"Blog",
1
]
- ]
+ ],
+ "id" : "Dave Cross"
},
{
"id" : "Dave Jacoby",
- "name" : "Dave Jacoby",
"data" : [
[
"Perl 5",
@@ -456,7 +447,8 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Dave Jacoby"
},
{
"data" : [
@@ -465,8 +457,8 @@
2
]
],
- "id" : "David Kayal",
- "name" : "David Kayal"
+ "name" : "David Kayal",
+ "id" : "David Kayal"
},
{
"id" : "Doug Schrag",
@@ -494,17 +486,17 @@
},
{
"name" : "Duncan C. White",
- "id" : "Duncan C. White",
"data" : [
[
"Perl 5",
2
]
- ]
+ ],
+ "id" : "Duncan C. White"
},
{
- "name" : "Eddy HS",
"id" : "Eddy HS",
+ "name" : "Eddy HS",
"data" : [
[
"Perl 5",
@@ -513,14 +505,14 @@
]
},
{
- "id" : "Finley",
"name" : "Finley",
"data" : [
[
"Perl 6",
2
]
- ]
+ ],
+ "id" : "Finley"
},
{
"id" : "Fred Zinn",
@@ -533,23 +525,23 @@
]
},
{
- "id" : "Freddie B",
- "name" : "Freddie B",
"data" : [
[
"Perl 5",
2
]
- ]
+ ],
+ "name" : "Freddie B",
+ "id" : "Freddie B"
},
{
+ "id" : "Gustavo Chaves",
"data" : [
[
"Perl 5",
1
]
],
- "id" : "Gustavo Chaves",
"name" : "Gustavo Chaves"
},
{
@@ -567,6 +559,7 @@
"id" : "JJ Merelo"
},
{
+ "name" : "Jaldhar H. Vyas",
"data" : [
[
"Perl 5",
@@ -577,22 +570,19 @@
2
]
],
- "name" : "Jaldhar H. Vyas",
"id" : "Jaldhar H. Vyas"
},
{
+ "id" : "Jeff",
"data" : [
[
"Perl 5",
2
]
],
- "id" : "Jeff",
"name" : "Jeff"
},
{
- "name" : "Jeremy Carman",
- "id" : "Jeremy Carman",
"data" : [
[
"Perl 5",
@@ -602,21 +592,21 @@
"Perl 6",
1
]
- ]
+ ],
+ "name" : "Jeremy Carman",
+ "id" : "Jeremy Carman"
},
{
- "id" : "Jim Bacon",
"name" : "Jim Bacon",
"data" : [
[
"Perl 5",
1
]
- ]
+ ],
+ "id" : "Jim Bacon"
},
{
- "id" : "Jo Christian Oterhals",
- "name" : "Jo Christian Oterhals",
"data" : [
[
"Perl 5",
@@ -630,7 +620,9 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Jo Christian Oterhals",
+ "id" : "Jo Christian Oterhals"
},
{
"data" : [
@@ -647,36 +639,37 @@
"id" : "Joelle Maslak"
},
{
- "name" : "John Barrett",
"id" : "John Barrett",
"data" : [
[
"Perl 5",
1
]
<