aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-261/laurent-rosenfeld/blog1.txt1
-rw-r--r--challenge-261/laurent-rosenfeld/perl/ch-2.pl17
-rw-r--r--challenge-261/laurent-rosenfeld/raku/ch-2.raku11
-rw-r--r--stats/pwc-current.json336
-rw-r--r--stats/pwc-language-breakdown-summary.json72
-rw-r--r--stats/pwc-language-breakdown.json1544
-rw-r--r--stats/pwc-leaders.json718
-rw-r--r--stats/pwc-summary-1-30.json46
-rw-r--r--stats/pwc-summary-121-150.json46
-rw-r--r--stats/pwc-summary-151-180.json56
-rw-r--r--stats/pwc-summary-181-210.json34
-rw-r--r--stats/pwc-summary-211-240.json100
-rw-r--r--stats/pwc-summary-241-270.json48
-rw-r--r--stats/pwc-summary-271-300.json34
-rw-r--r--stats/pwc-summary-301-330.json54
-rw-r--r--stats/pwc-summary-31-60.json108
-rw-r--r--stats/pwc-summary-61-90.json108
-rw-r--r--stats/pwc-summary-91-120.json122
-rw-r--r--stats/pwc-summary.json52
19 files changed, 1787 insertions, 1720 deletions
diff --git a/challenge-261/laurent-rosenfeld/blog1.txt b/challenge-261/laurent-rosenfeld/blog1.txt
new file mode 100644
index 0000000000..83ce046aae
--- /dev/null
+++ b/challenge-261/laurent-rosenfeld/blog1.txt
@@ -0,0 +1 @@
+https://blogs.perl.org/users/laurent_r/2024/03/perl-weekly-challenge-261-multiply-by-two.html
diff --git a/challenge-261/laurent-rosenfeld/perl/ch-2.pl b/challenge-261/laurent-rosenfeld/perl/ch-2.pl
new file mode 100644
index 0000000000..b77de6c889
--- /dev/null
+++ b/challenge-261/laurent-rosenfeld/perl/ch-2.pl
@@ -0,0 +1,17 @@
+use strict;
+use warnings;
+use feature 'say';
+
+sub multiply_by_two {
+ my $start = shift;
+ die "$start cannot be 0" if $start == 0;
+ my %present = map { $_ => 1 } @_;
+ $start *= 2 while $present{$start};
+ return $start;
+}
+
+my @tests = ( [3, [5,3,6,1,12]], [1, [1,2,4,3]], [2, [5,6,7]] );
+for my $test (@tests) {
+ printf "%d - %-15s => ", $test->[0], "@{$test->[1]}";
+ say multiply_by_two @$test[0], @{$test->[1]};
+}
diff --git a/challenge-261/laurent-rosenfeld/raku/ch-2.raku b/challenge-261/laurent-rosenfeld/raku/ch-2.raku
new file mode 100644
index 0000000000..67860cd2f3
--- /dev/null
+++ b/challenge-261/laurent-rosenfeld/raku/ch-2.raku
@@ -0,0 +1,11 @@
+sub multiply-by-two ($start is copy where * != 0, @in) {
+ my $bag = @in.Bag;
+ $start *= 2 while $bag{$start};
+ return $start;
+}
+
+my @tests = (3, (5,3,6,1,12)), (1, (1,2,4,3)), (2, (5,6,7));
+for @tests -> @test {
+ printf "%d - %-15s => ", @test[0], "@test[1]";
+ say multiply-by-two @test[0], @test[1];
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 8b4fbabe6f..f42ae07ac9 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,158 +1,77 @@
{
- "chart" : {
- "type" : "column"
- },
- "xAxis" : {
- "type" : "category"
- },
- "series" : [
- {
- "name" : "The Weekly Challenge - 261",
- "colorByPoint" : 1,
- "data" : [
- {
- "y" : 2,
- "name" : "Andrew Shitov",
- "drilldown" : "Andrew Shitov"
- },
- {
- "drilldown" : "Asher Harvey-Smith",
- "name" : "Asher Harvey-Smith",
- "y" : 2
- },
- {
- "name" : "Dave Jacoby",
- "drilldown" : "Dave Jacoby",
- "y" : 3
- },
- {
- "y" : 2,
- "name" : "David Ferrone",
- "drilldown" : "David Ferrone"
- },
- {
- "name" : "E. Choroba",
- "drilldown" : "E. Choroba",
- "y" : 2
- },
- {
- "name" : "Feng Chang",
- "drilldown" : "Feng Chang",
- "y" : 2
- },
- {
- "y" : 3,
- "name" : "Laurent Rosenfeld",
- "drilldown" : "Laurent Rosenfeld"
- },
- {
- "y" : 11,
- "drilldown" : "Luca Ferrari",
- "name" : "Luca Ferrari"
- },
- {
- "drilldown" : "Mariano Spadaccini",
- "name" : "Mariano Spadaccini",
- "y" : 2
- },
- {
- "y" : 2,
- "drilldown" : "Mark Anderson",
- "name" : "Mark Anderson"
- },
- {
- "drilldown" : "Niels van Dijke",
- "name" : "Niels van Dijke",
- "y" : 2
- },
- {
- "name" : "Packy Anderson",
- "drilldown" : "Packy Anderson",
- "y" : 5
- },
- {
- "y" : 3,
- "drilldown" : "Peter Campbell Smith",
- "name" : "Peter Campbell Smith"
- },
- {
- "name" : "Peter Meszaros",
- "drilldown" : "Peter Meszaros",
- "y" : 2
- },
- {
- "y" : 3,
- "drilldown" : "Robbie Hatley",
- "name" : "Robbie Hatley"
- },
- {
- "drilldown" : "Roger Bell_West",
- "name" : "Roger Bell_West",
- "y" : 4
- },
- {
- "y" : 4,
- "name" : "Thomas Kohler",
- "drilldown" : "Thomas Kohler"
- },
- {
- "name" : "Ulrich Rieke",
- "drilldown" : "Ulrich Rieke",
- "y" : 4
- },
- {
- "y" : 3,
- "name" : "W. Luis Mochan",
- "drilldown" : "W. Luis Mochan"
- }
- ]
- }
- ],
"yAxis" : {
"title" : {
"text" : "Total Solutions"
}
},
+ "xAxis" : {
+ "type" : "category"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "chart" : {
+ "type" : "column"
+ },
"tooltip" : {
- "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>",
+ "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>",
"followPointer" : 1,
- "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/>"
},
"subtitle" : {
- "text" : "[Champions: 19] Last updated at 2024-03-20 20:00:19 GMT"
- },
- "plotOptions" : {
- "series" : {
- "borderWidth" : 0,
- "dataLabels" : {
- "format" : "{point.y}",
- "enabled" : 1
- }
- }
+ "text" : "[Champions: 21] Last updated at 2024-03-21 17:49:22 GMT"
},
"drilldown" : {
"series" : [
{
- "id" : "Andrew Shitov",
+ "name" : "Andrew Shitov",
"data" : [
[
"Raku",
2
]
],
- "name" : "Andrew Shitov"
+ "id" : "Andrew Shitov"
+ },
+ {
+ "name" : "Arne Sommer",
+ "id" : "Arne Sommer",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
},
{
+ "id" : "Asher Harvey-Smith",
"data" : [
[
"Raku",
2
]
],
- "id" : "Asher Harvey-Smith",
"name" : "Asher Harvey-Smith"
},
{
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Athanasius",
+ "name" : "Athanasius"
+ },
+ {
"name" : "Dave Jacoby",
"data" : [
[
@@ -178,41 +97,41 @@
},
{
"name" : "E. Choroba",
+ "id" : "E. Choroba",
"data" : [
[
"Perl",
2
]
- ],
- "id" : "E. Choroba"
+ ]
},
{
+ "name" : "Feng Chang",
"data" : [
[
"Raku",
2
]
],
- "id" : "Feng Chang",
- "name" : "Feng Chang"
+ "id" : "Feng Chang"
},
{
"name" : "Laurent Rosenfeld",
+ "id" : "Laurent Rosenfeld",
"data" : [
[
"Perl",
- 1
+ 2
],
[
"Raku",
- 1
+ 2
],
[
"Blog",
- 1
+ 2
]
- ],
- "id" : "Laurent Rosenfeld"
+ ]
},
{
"id" : "Luca Ferrari",
@@ -229,24 +148,24 @@
"name" : "Luca Ferrari"
},
{
- "name" : "Mariano Spadaccini",
"data" : [
[
"Perl",
2
]
],
- "id" : "Mariano Spadaccini"
+ "id" : "Mariano Spadaccini",
+ "name" : "Mariano Spadaccini"
},
{
+ "name" : "Mark Anderson",
"data" : [
[
"Raku",
2
]
],
- "id" : "Mark Anderson",
- "name" : "Mark Anderson"
+ "id" : "Mark Anderson"
},
{
"data" : [
@@ -259,7 +178,6 @@
"name" : "Niels van Dijke"
},
{
- "name" : "Packy Anderson",
"id" : "Packy Anderson",
"data" : [
[
@@ -274,7 +192,8 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Packy Anderson"
},
{
"id" : "Peter Campbell Smith",
@@ -291,16 +210,17 @@
"name" : "Peter Campbell Smith"
},
{
- "name" : "Peter Meszaros",
+ "id" : "Peter Meszaros",
"data" : [
[
"Perl",
2
]
],
- "id" : "Peter Meszaros"
+ "name" : "Peter Meszaros"
},
{
+ "id" : "Robbie Hatley",
"data" : [
[
"Perl",
@@ -311,10 +231,11 @@
1
]
],
- "id" : "Robbie Hatley",
"name" : "Robbie Hatley"
},
{
+ "name" : "Roger Bell_West",
+ "id" : "Roger Bell_West",
"data" : [
[
"Perl",
@@ -324,9 +245,7 @@
"Raku",
2
]
- ],
- "id" : "Roger Bell_West",
- "name" : "Roger Bell_West"
+ ]
},
{
"name" : "Thomas Kohler",
@@ -343,7 +262,7 @@
]
},
{
- "id" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke",
"data" : [
[
"Perl",
@@ -354,7 +273,7 @@
2
]
],
- "name" : "Ulrich Rieke"
+ "id" : "Ulrich Rieke"
},
{
"id" : "W. Luis Mochan",
@@ -372,10 +291,129 @@
}
]
},
+ "series" : [
+ {
+ "name" : "The Weekly Challenge - 261",
+ "colorByPoint" : 1,
+ "data" : [
+ {
+ "drilldown" : "Andrew Shitov",
+ "y" : 2,
+ "name" : "Andrew Shitov"
+ },
+ {
+ "name" : "Arne Sommer",
+ "y" : 3,
+ "drilldown" : "Arne Sommer"
+ },
+ {
+ "name" : "Asher Harvey-Smith",
+ "y" : 2,
+ "drilldown" : "Asher Harvey-Smith"
+ },
+ {
+ "name" : "Athanasius",
+ "y" : 4,
+ "drilldown" : "Athanasius"
+ },
+ {
+ "drilldown" : "Dave Jacoby",
+ "y" : 3,
+ "name" : "Dave Jacoby"
+ },
+ {
+ "name" : "David Ferrone",
+ "y" : 2,
+ "drilldown" : "David Ferrone"
+ },
+ {
+ "drilldown" : "E. Choroba",
+ "name" : "E. Choroba",
+ "y" : 2
+ },
+ {
+ "y" : 2,
+ "name" : "Feng Chang",
+ "drilldown" : "Feng Chang"
+ },
+ {
+ "drilldown" : "Laurent Rosenfeld",
+ "y" : 6,
+ "name" : "Laurent Rosenfeld"
+ },
+ {
+ "y" : 11,
+ "name" : "Luca Ferrari",
+ "drilldown" : "Luca Ferrari"
+ },
+ {
+ "y" : 2,
+ "name" : "Mariano Spadaccini",
+ "drilldown" : "Mariano Spadaccini"
+ },
+ {
+ "y" : 2,
+ "name" : "Mark Anderson",
+ "drilldown" : "Mark Anderson"
+ },
+ {
+ "name" : "Niels van Dijke",
+ "y" : 2,
+ "drilldown" : "Niels van Dijke"
+ },
+ {
+ "name" : "Packy Anderson",
+ "y" : 5,
+ "drilldown" : "Packy Anderson"
+ },
+ {
+ "y" : 3,
+ "name" : "Peter Campbell Smith",
+ "drilldown" : "Peter Campbell Smith"
+ },
+ {
+ "drilldown" : "Peter Meszaros",
+ "name" : "Peter Meszaros",
+ "y" : 2
+ },
+ {
+ "name" : "Robbie Hatley",
+ "y" : 3,
+ "drilldown" : "Robbie Hatley"
+ },
+ {
+ "drilldown" : "Roger Bell_West",
+ "name" : "Roger Bell_West",
+ "y" : 4
+ },
+ {
+ "name" : "Thomas Kohler",
+ "y" : 4,
+ "drilldown" : "Thomas Kohler"
+ },
+ {
+ "drilldown" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke",
+ "y" : 4
+ },
+ {
+ "drilldown" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan",
+ "y" : 3
+ }
+ ]
+ }
+ ],
"title" : {
"text" : "The Weekly Challenge - 261"
},
- "legend" : {
- "enabled" : 0
+ "plotOptions" : {
+ "series" : {
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ },
+ "borderWidth" : 0
+ }
}
}
diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json
index efa655e9ab..ce8e7151fb 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -1,57 +1,39 @@
{
"subtitle" : {
- "text" : "Last updated at 2024-03-20 20:00:19 GMT"
- },
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
+ "text" : "Last updated at 2024-03-21 17:49:22 GMT"
},
"title" : {
"text" : "The Weekly Challenge Contributions [2019 - 2024]"
},
- "legend" : {
- "enabled" : "false"
- },
- "chart" : {
- "type" : "column"
- },
- "xAxis" : {
- "type" : "category",
- "labels" : {
- "style" : {
- "fontSize" : "13px",
- "fontFamily" : "Verdana, sans-serif"
- }
- }
- },
"series" : [
{
+ "name" : "Contributions",
+ "dataLabels" : {
+ "rotation" : -90,
+ "format" : "{point.y:.0f}",
+ "enabled" : "true",
+ "style" : {
+ "fontFamily" : "Verdana, sans-serif",
+ "fontSize" : "13px"
+ },
+ "align" : "right",
+ "color" : "#FFFFFF",
+ "y" : 10
+ },
"data" : [
[
"Blog",
- 4654
+ 4656
],
[
"Perl",
- 13493
+ 13496
],
[
"Raku",
- 7832
+ 7837
]
- ],
- "name" : "Contributions",
- "dataLabels" : {
- "format" : "{point.y:.0f}",
- "style" : {
- "fontSize" : "13px",
- "fontFamily" : "Verdana, sans-serif"
- },
- "y" : 10,
- "align" : "right",
- "color" : "#FFFFFF",
- "enabled" : "true",
- "rotation" : -90
- }
+ ]
}
],
"yAxis" : {
@@ -59,5 +41,23 @@
"title" : {
"text" : null
}
+ },
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "xAxis" : {
+ "type" : "category",
+ "labels" : {
+ "style" : {
+ "fontFamily" : "Verdana, sans-serif",
+ "fontSize" : "13px"
+ }
+ }
+ },
+ "legend" : {
+ "enabled" : "false"
}
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index 5b7b715cb3..da32021342 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -1,16 +1,19 @@
{
- "subtitle" : {
- "text" : "Click the columns to drilldown the language breakdown. Last updated at 2024-03-20 20:00:19 GMT"
+ "title" : {
+ "text" : "The Weekly Challenge Language"
},
- "tooltip" : {
- "followPointer" : "true",
- "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>",
- "headerFormat" : "<span style=\"font-size:11px\"></span>"
+ "plotOptions" : {
+ "series" : {
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ },
+ "borderWidth" : 0
+ }
},
"drilldown" : {
"series" : [
{
- "name" : "001",
"id" : "001",
"data" : [
[
@@ -25,7 +28,8 @@
"Blog",
12
]
- ]
+ ],
+ "name" : "001"
},
{
"name" : "002",
@@ -46,7 +50,6 @@
]
},
{
- "name" : "003",
"data" : [
[
"Perl",
@@ -61,7 +64,8 @@
9
]
],
- "id" : "003"
+ "id" : "003",
+ "name" : "003"
},
{
"name" : "004",
@@ -155,7 +159,6 @@
},
{
"name" : "009",
- "id" : "009",
"data" : [
[
"Perl",
@@ -169,11 +172,11 @@
"Blog",
13
]
- ]
+ ],
+ "id" : "009"
},
{
"name" : "010",
- "id" : "010",
"data" : [
[
"Perl",
@@ -187,10 +190,10 @@
"Blog",
11
]
- ]
+ ],
+ "id" : "010"
},
{
- "name" : "011",
"data" : [
[
"Perl",
@@ -205,7 +208,8 @@
10
]
],
- "id" : "011"
+ "id" : "011",
+ "name" : "011"
},
{
"data" : [
@@ -226,7 +230,6 @@
"name" : "012"
},
{
- "name" : "013",
"data" : [
[
"Perl",
@@ -241,10 +244,10 @@
13
]
],
- "id" : "013"
+ "id" : "013",
+ "name" : "013"
},
{
- "name" : "014",
"data" : [
[
"Perl",
@@ -259,10 +262,11 @@
15
]
],
- "id" : "014"
+ "id" : "014",
+ "name" : "014"
},
{
- "name" : "015",
+ "id" : "015",
"data" : [
[
"Perl",
@@ -277,7 +281,7 @@
15
]
],
- "id" : "015"
+ "name" : "015"
},
{
"name" : "016",
@@ -299,6 +303,7 @@
},
{
"name" : "017",
+ "id" : "017",
"data" : [
[
"Perl",
@@ -312,8 +317,7 @@
"Blog",
12
]
- ],
- "id" : "017"
+ ]
},
{
"data" : [
@@ -352,6 +356,7 @@
"id" : "019"
},
{
+ "name" : "020",
"id" : "020",
"data" : [
[
@@ -366,8 +371,7 @@
"Blog",
13
]
- ],
- "name" : "020"
+ ]
},
{
"name" : "021",
@@ -388,7 +392,6 @@
]
},
{
- "name" : "022",
"data" : [
[
"Perl",
@@ -403,9 +406,11 @@
10
]
],
- "id" : "022"
+ "id" : "022",
+ "name" : "022"
},
{
+ "name" : "023",
"id" : "023",
"data" : [
[
@@ -420,11 +425,9 @@
"Blog",
12
]
- ],
- "name" : "023"
+ ]
},
{
- "id" : "024",
"data" : [
[
"Perl",
@@ -439,10 +442,11 @@
11
]
],
+ "id" : "024",
"name" : "024"
},
{
- "name" : "025",
+ "id" : "025",
"data" : [
[
"Perl",
@@ -457,7 +461,7 @@
12
]
],
- "id" : "025"
+ "name" : "025"
},
{
"name" : "026",
@@ -478,6 +482,7 @@
]
},
{
+ "id" : "027",
"data" : [
[
"Perl",
@@ -492,7 +497,6 @@
9
]
],
- "id" : "027",
"name" : "027"
},
{
@@ -532,7 +536,7 @@
"name" : "029"
},
{
- "id" : "030",
+ "name" : "030",
"data" : [
[
"Perl",
@@ -547,10 +551,9 @@
10
]
],
- "name" : "030"
+ "id" : "030"
},
{
- "id" : "031",
"data" : [
[
"Perl",
@@ -565,9 +568,11 @@
9
]
],
+ "id" : "031",
"name" : "031"
},
{
+ "name" : "032",
"id" : "032",
"data" : [
[
@@ -582,10 +587,10 @@
"Blog",
10
]
- ],
- "name" : "032"
+ ]
},
{
+ "id" : "033",
"data" : [
[
"Perl",
@@ -600,11 +605,9 @@
10
]
],
- "id" : "033",
"name" : "033"
},
{
- "id" : "034",
"data" : [
[
"Perl",
@@ -619,6 +622,7 @@
11
]
],
+ "id" : "034",
"name" : "034"
},
{
@@ -641,7 +645,6 @@
},
{
"name" : "036",
- "id" : "036",
"data" : [
[
"Perl",
@@ -655,11 +658,11 @@
"Blog",
11
]
- ]
+ ],
+ "id" : "036"
},
{
"name" : "037",
- "id" : "037",
"data" : [
[
"Perl",
@@ -673,10 +676,11 @@
"Blog",
9
]
- ]
+ ],
+ "id" : "037"
},
{
- "name" : "038",
+ "id" : "038",
"data" : [
[
"Perl",
@@ -691,9 +695,10 @@
12
]
],
- "id" : "038"
+ "name" : "038"
},
{
+ "name" : "039",
"id" : "039",
"data" : [
[
@@ -708,11 +713,11 @@
"Blog",
12
]
- ],
- "name" : "039"
+ ]
},
{
"name" : "040",
+ "id" : "040",
"data" : [
[
"Perl",
@@ -726,11 +731,9 @@
"Blog",
10
]
- ],
- "id" : "040"
+ ]
},
{
- "name" : "041",
"id" : "041",
"data" : [
[
@@ -745,9 +748,11 @@
"Blog",
9
]
- ]
+ ],
+ "name" : "041"
},
{
+ "name" : "042",
"id" : "042",
"data" : [
[
@@ -762,11 +767,9 @@
"Blog",
11
]
- ],
- "name" : "042"
+ ]
},
{
- "name" : "043",
"data" : [
[
"Perl",
@@ -781,7 +784,8 @@
11
]
],
- "id" : "043"
+ "id" : "043",
+ "name" : "043"
},
{
"data" : [
@@ -802,6 +806,8 @@
"name" : "044"
},
{
+ "name" : "045",
+ "id" : "045",
"data" : [
[
"Perl",
@@ -815,12 +821,10 @@
"Blog",
11
]
- ],
- "id" : "045",
- "name" : "045"
+ ]
},
{
- "name" : "046",
+ "id" : "046",
"data" : [
[
"Perl",
@@ -835,11 +839,9 @@
10
]
],
- "id" : "046"
+ "name" : "046"
},