aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2022-11-28 13:45:19 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2022-11-28 13:45:19 +0000
commit6f099a71fb621bc59ca1b3f438d2768122e59105 (patch)
treec2ebf7258770c906cf59ba24b054a2b13eda4620
parent9722672783a2326180ef36c9296f8c417dceb5f6 (diff)
downloadperlweeklychallenge-club-6f099a71fb621bc59ca1b3f438d2768122e59105.tar.gz
perlweeklychallenge-club-6f099a71fb621bc59ca1b3f438d2768122e59105.tar.bz2
perlweeklychallenge-club-6f099a71fb621bc59ca1b3f438d2768122e59105.zip
- Added solution by Olivier Delouya.
-rw-r--r--challenge-193/olivier-delouya/perl/ch-1.sh5
-rw-r--r--stats/pwc-current.json109
-rw-r--r--stats/pwc-language-breakdown-summary.json64
-rw-r--r--stats/pwc-language-breakdown.json1138
-rw-r--r--stats/pwc-leaders.json368
-rw-r--r--stats/pwc-summary-1-30.json54
-rw-r--r--stats/pwc-summary-121-150.json40
-rw-r--r--stats/pwc-summary-151-180.json40
-rw-r--r--stats/pwc-summary-181-210.json102
-rw-r--r--stats/pwc-summary-211-240.json126
-rw-r--r--stats/pwc-summary-241-270.json92
-rw-r--r--stats/pwc-summary-271-300.json36
-rw-r--r--stats/pwc-summary-31-60.json110
-rw-r--r--stats/pwc-summary-61-90.json98
-rw-r--r--stats/pwc-summary-91-120.json56
-rw-r--r--stats/pwc-summary.json56
16 files changed, 1257 insertions, 1237 deletions
diff --git a/challenge-193/olivier-delouya/perl/ch-1.sh b/challenge-193/olivier-delouya/perl/ch-1.sh
new file mode 100644
index 0000000000..324890631f
--- /dev/null
+++ b/challenge-193/olivier-delouya/perl/ch-1.sh
@@ -0,0 +1,5 @@
+binstr='$max=2**$n; $nd=1x${n}; for($i=0; $i<$max; $i++) {printf "%0${n}b ", $i};'
+
+perl -se "$binstr" -- -n=2
+
+perl -se "$binstr" -- -n=3
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 76c0f129f4..4f7bc67a6e 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,18 +1,69 @@
{
+ "xAxis" : {
+ "type" : "category"
+ },
"title" : {
"text" : "The Weekly Challenge - 193"
},
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "series" : [
+ {
+ "data" : [
+ {
+ "name" : "Niels van Dijke",
+ "y" : 2,
+ "drilldown" : "Niels van Dijke"
+ },
+ {
+ "drilldown" : "Olivier Delouya",
+ "y" : 1,
+ "name" : "Olivier Delouya"
+ },
+ {
+ "drilldown" : "Roger Bell_West",
+ "y" : 4,
+ "name" : "Roger Bell_West"
+ },
+ {
+ "name" : "Simon Proctor",
+ "y" : 1,
+ "drilldown" : "Simon Proctor"
+ }
+ ],
+ "name" : "The Weekly Challenge - 193",
+ "colorByPoint" : 1
+ }
+ ],
+ "tooltip" : {
+ "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/>"
+ },
"drilldown" : {
"series" : [
{
- "id" : "Niels van Dijke",
"data" : [
[
"Perl",
2
]
],
- "name" : "Niels van Dijke"
+ "name" : "Niels van Dijke",
+ "id" : "Niels van Dijke"
+ },
+ {
+ "id" : "Olivier Delouya",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ],
+ "name" : "Olivier Delouya"
},
{
"id" : "Roger Bell_West",
@@ -29,69 +80,33 @@
"name" : "Roger Bell_West"
},
{
+ "name" : "Simon Proctor",
"data" : [
[
"Raku",
1
]
],
- "name" : "Simon Proctor",
"id" : "Simon Proctor"
}
]
},
- "series" : [
- {
- "colorByPoint" : 1,
- "data" : [
- {
- "drilldown" : "Niels van Dijke",
- "y" : 2,
- "name" : "Niels van Dijke"
- },
- {
- "y" : 4,
- "drilldown" : "Roger Bell_West",
- "name" : "Roger Bell_West"
- },
- {
- "name" : "Simon Proctor",
- "drilldown" : "Simon Proctor",
- "y" : 1
- }
- ],
- "name" : "The Weekly Challenge - 193"
- }
- ],
- "xAxis" : {
- "type" : "category"
+ "chart" : {
+ "type" : "column"
},
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
+ "subtitle" : {
+ "text" : "[Champions: 4] Last updated at 2022-11-28 13:39:13 GMT"
},
"plotOptions" : {
"series" : {
- "borderWidth" : 0,
"dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
- }
+ "format" : "{point.y}",
+ "enabled" : 1
+ },
+ "borderWidth" : 0
}
},
- "chart" : {
- "type" : "column"
- },
"legend" : {
"enabled" : 0
- },
- "subtitle" : {
- "text" : "[Champions: 3] Last updated at 2022-11-28 13:19:30 GMT"
- },
- "tooltip" : {
- "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/>"
}
}
diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json
index 0fcbf76db3..443a65dd81 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -1,24 +1,25 @@
{
- "subtitle" : {
- "text" : "Last updated at 2022-11-28 13:19:30 GMT"
+ "xAxis" : {
+ "type" : "category",
+ "labels" : {
+ "style" : {
+ "fontFamily" : "Verdana, sans-serif",
+ "fontSize" : "13px"
+ }
+ }
},
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
+ "title" : {
+ "text" : "The Weekly Challenge Contributions [2019 - 2022]"
},
"yAxis" : {
+ "min" : 0,
"title" : {
"text" : null
- },
- "min" : 0
- },
- "legend" : {
- "enabled" : "false"
- },
- "chart" : {
- "type" : "column"
+ }
},
"series" : [
{
+ "name" : "Contributions",
"data" : [
[
"Blog",
@@ -26,7 +27,7 @@
],
[
"Perl",
- 9428
+ 9429
],
[
"Raku",
@@ -34,30 +35,29 @@
]
],
"dataLabels" : {
- "enabled" : "true",
- "align" : "right",
- "rotation" : -90,
"y" : 10,
- "format" : "{point.y:.0f}",
"style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
},
- "color" : "#FFFFFF"
- },
- "name" : "Contributions"
+ "rotation" : -90,
+ "align" : "right",
+ "color" : "#FFFFFF",
+ "enabled" : "true",
+ "format" : "{point.y:.0f}"
+ }
}
],
- "xAxis" : {
- "labels" : {
- "style" : {
- "fontSize" : "13px",
- "fontFamily" : "Verdana, sans-serif"
- }
- },
- "type" : "category"
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
},
- "title" : {
- "text" : "The Weekly Challenge Contributions [2019 - 2022]"
+ "chart" : {
+ "type" : "column"
+ },
+ "subtitle" : {
+ "text" : "Last updated at 2022-11-28 13:39:13 GMT"
+ },
+ "legend" : {
+ "enabled" : "false"
}
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index 545a0a0fac..0a86e9e146 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -2,36 +2,9 @@
"chart" : {
"type" : "column"
},
- "legend" : {
- "enabled" : "false"
- },
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
- },
- "plotOptions" : {
- "series" : {
- "dataLabels" : {
- "format" : "{point.y}",
- "enabled" : 1
- },
- "borderWidth" : 0
- }
- },
- "tooltip" : {
- "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>",
- "headerFormat" : "<span style=\"font-size:11px\"></span>",
- "followPointer" : "true"
- },
- "subtitle" : {
- "text" : "Click the columns to drilldown the language breakdown. Last updated at 2022-11-28 13:19:30 GMT"
- },
"drilldown" : {
"series" : [
{
- "id" : "001",
- "name" : "001",
"data" : [
[
"Perl",
@@ -45,11 +18,11 @@
"Blog",
11
]
- ]
+ ],
+ "name" : "001",
+ "id" : "001"
},
{
- "id" : "002",
- "name" : "002",
"data" : [
[
"Perl",
@@ -63,10 +36,11 @@
"Blog",
10
]
- ]
+ ],
+ "name" : "002",
+ "id" : "002"
},
{
- "id" : "003",
"data" : [
[
"Perl",
@@ -81,7 +55,8 @@
9
]
],
- "name" : "003"
+ "name" : "003",
+ "id" : "003"
},
{
"id" : "004",
@@ -102,6 +77,7 @@
]
},
{
+ "name" : "005",
"data" : [
[
"Perl",
@@ -116,11 +92,9 @@
12
]
],
- "name" : "005",
"id" : "005"
},
{
- "name" : "006",
"data" : [
[
"Perl",
@@ -135,11 +109,11 @@
7
]
],
+ "name" : "006",
"id" : "006"
},
{
"id" : "007",
- "name" : "007",
"data" : [
[
"Perl",
@@ -153,9 +127,11 @@
"Blog",
10
]
- ]
+ ],
+ "name" : "007"
},
{
+ "id" : "008",
"data" : [
[
"Perl",
@@ -170,11 +146,9 @@
12
]
],
- "name" : "008",
- "id" : "008"
+ "name" : "008"
},
{
- "name" : "009",
"data" : [
[
"Perl",
@@ -189,11 +163,10 @@
13
]
],
+ "name" : "009",
"id" : "009"
},
{
- "id" : "010",
- "name" : "010",
"data" : [
[
"Perl",
@@ -207,7 +180,9 @@
"Blog",
11
]
- ]
+ ],
+ "name" : "010",
+ "id" : "010"
},
{
"id" : "011",
@@ -228,6 +203,7 @@
"name" : "011"
},
{
+ "name" : "012",
"data" : [
[
"Perl",
@@ -242,12 +218,9 @@
11
]
],
- "name" : "012",
"id" : "012"
},
{
- "id" : "013",
- "name" : "013",
"data" : [
[
"Perl",
@@ -261,10 +234,11 @@
"Blog",
13
]
- ]
+ ],
+ "name" : "013",
+ "id" : "013"
},
{
- "name" : "014",
"data" : [
[
"Perl",
@@ -279,6 +253,7 @@
15
]
],
+ "name" : "014",
"id" : "014"
},
{
@@ -300,6 +275,8 @@
"id" : "015"
},
{
+ "id" : "016",
+ "name" : "016",
"data" : [
[
"Perl",
@@ -313,12 +290,9 @@
"Blog",
12
]
- ],
- "name" : "016",
- "id" : "016"
+ ]
},
{
- "id" : "017",
"name" : "017",
"data" : [
[
@@ -333,9 +307,11 @@
"Blog",
12
]
- ]
+ ],
+ "id" : "017"
},
{
+ "name" : "018",
"data" : [
[
"Perl",
@@ -350,7 +326,6 @@
14
]
],
- "name" : "018",
"id" : "018"
},
{
@@ -372,6 +347,8 @@
"id" : "019"
},
{
+ "id" : "020",
+ "name" : "020",
"data" : [
[
"Perl",
@@ -385,13 +362,10 @@
"Blog",
13
]
- ],
- "name" : "020",
- "id" : "020"
+ ]
},
{
"id" : "021",
- "name" : "021",
"data" : [
[
"Perl",
@@ -405,10 +379,11 @@
"Blog",
10
]
- ]
+ ],
+ "name" : "021"
},
{
- "id" : "022",
+ "name" : "022",
"data" : [
[
"Perl",
@@ -423,7 +398,7 @@
10
]
],
- "name" : "022"
+ "id" : "022"
},
{
"name" : "023",
@@ -445,7 +420,6 @@
},
{
"id" : "024",
- "name" : "024",
"data" : [
[
"Perl",
@@ -459,9 +433,12 @@
"Blog",
11
]
- ]
+ ],
+ "name" : "024"
},
{
+ "id" : "025",
+ "name" : "025",
"data" : [
[
"Perl",
@@ -475,12 +452,9 @@
"Blog",
12
]
- ],
- "name" : "025",
- "id" : "025"
+ ]
},
{
- "id" : "026",
"name" : "026",
"data" : [
[
@@ -495,10 +469,10 @@
"Blog",
10
]
- ]
+ ],
+ "id" : "026"
},
{
- "name" : "027",
"data" : [
[
"Perl",
@@ -513,6 +487,7 @@
9
]
],
+ "name" : "027",
"id" : "027"
},
{
@@ -570,7 +545,6 @@
"id" : "030"
},
{
- "id" : "031",
"name" : "031",
"data" : [
[
@@ -585,10 +559,12 @@
"Blog",
9
]
- ]
+ ],
+ "id" : "031"
},
{
"id" : "032",
+ "name" : "032",
"data" : [
[
"Perl",
@@ -602,12 +578,10 @@
"Blog",
10
]
- ],
- "name" : "032"
+ ]
},
{
"id" : "033",
- "name" : "033",
"data" : [
[
"Perl",
@@ -621,10 +595,10 @@
"Blog",
10
]
- ]
+ ],
+ "name" : "033"
},
{
- "id" : "034",
"data" : [
[
"Perl",
@@ -639,9 +613,12 @@
11
]
],
- "name" : "034"
+ "name" : "034",
+ "id" : "034"
},
{
+ "id" : "035",
+ "name" : "035",
"data" : [
[
"Perl",
@@ -655,9 +632,7 @@
"Blog",
9
]
- ],
- "name" : "035",
- "id" : "035"
+ ]
},
{
"data" : [
@@ -678,6 +653,7 @@
"id" : "036"
},
{
+ "id" : "037",
"data" : [
[
"Perl",
@@ -692,10 +668,10 @@
9
]
],
- "name" : "037",
- "id" : "037"
+ "name" : "037"
},
{
+ "name" : "038",
"data" : [
[
"Perl",
@@ -710,12 +686,10 @@
12
]
],
- "name" : "038",
"id" : "038"
},
{
"id" : "039",
- "name" : "039",
"data" : [
[
"Perl",
@@ -729,9 +703,12 @@
"Blog",
12
]
- ]
+ ],
+ "name" : "039"
},
{
+ "id" : "040",
+ "name" : "040",
"data" : [
[
"Perl",
@@ -745,11 +722,10 @@
"Blog",
10
]
- ],
- "name" : "040",
- "id" : "040"
+ ]
},
{
+ "name" : "041",
"data" : [
[
"Perl",
@@ -764,12 +740,9 @@
9
]
],
- "name" : "041",
"id" : "041"
},
{
- "id" : "042",
- "name" : "042",
"data" : [
[
"Perl",
@@ -783,9 +756,13 @@
"Blog",
11
]
- ]
+ ],
+ "name" : "042",
+ "id" : "042"
},
{
+ "id" : "043",
+ "name" : "043",
"data" : [
[
"Perl",
@@ -799,11 +776,11 @@
"Blog",
11
]
- ],
- "name" : "043",
- "id" : "043"
+ ]
},
{
+ "id" : "044",
+ "name" : "044",
"data" : [
[
"Perl",
@@ -817,13 +794,9 @@
"Blog",
11
]
- ],
- "name" : "044",
- "id" : "044"
+ ]
},
{
- "id" : "045",
- "name" : "045",
"data" : [
[
"Perl",
@@ -837,7 +810,9 @@
"Blog",
11
]
- ]
+ ],
+ "name" : "045",
+ "id" : "045"
},
{
"name" : "046",
@@ -858,6 +833,7 @@
"id" : "046"
},
{
+ "id" : "047",
"data" : [
[
"Perl",
@@ -872,11 +848,11 @@
10
]
],
- "name" : "047",
- "id" : "047"
+ "name" : "047"
},
{
"id" : "048",
+ "name" : "048",
"data" : [
[
"Perl",
@@ -890,11 +866,9 @@
"Blog",
12
]
- ],
- "name" : "048"
+ ]
},
{
- "name" : "049",
"data" : [
[
"Perl",
@@ -909,6 +883,7 @@
12
]
],
+ "name" : "049",
"id" : "049"
},
{
@@ -930,7 +905,6 @@
]
},
{
- "name" : "051",
"data" : [
[
"Perl",
@@ -945,10 +919,10 @@
11
]
],
+ "name" : "051",
"id" : "051"
},
{
- "name" : "052",
"data" : [
[
"Perl",
@@ -963,11 +937,11 @@
14
]
],
+ "name" : "052",
"id" : "052"
},
{
"id" : "053",
- "name" : "053",
"data" : [
[
"Perl",
@@ -981,7 +955,8 @@
"Blog",
15
]
- ]
+ ],
+ "name" : "053"
},
{
"name" : "054",
@@ -1002,7 +977,7 @@
"id" : "054"
},
{
- "name" : "055",
+ "id" : "055",
"data" : [
[
"Perl",
@@ -1017,10 +992,9 @@
14
]
],
- "id" : "055"
+ "name" : "055"
},
{
- "id" : "056",
"name" : "056",
"data" : [
[
@@ -1035,10 +1009,12 @@
"Blog",
16
]
- ]
+ ],
+ "id" : "056"
},
{
"id" : "057",
+ "name" : "057",
"data" : [
[
"Perl",
@@ -1052,12 +1028,9 @@
"Blog",
15
]
- ],
- "name" : "057"
+ ]
},
{
- "id" : "058",
- "name" : "058",
"data" : [
[
"Perl",
@@ -1071,10 +1044,11 @@
"Blog",
13
]
- ]
+ ],
+ "name" : "058",
+ "id" : "058"
},
{
- "id" : "059",
"name" : "059",
"data" : [
[
@@ -1089,9 +1063,11 @@
"Blog",
16
]
- ]
+ ],
+ "id" : "059"
},
{
+ "id" : "060",
"data" : [
[
"Perl",
@@ -1106,11 +1082,9 @@
16
]
],
- "name" : "060",
- "id" : "060"
+ "name" : "060"
},
{
- "id" : "061",
"name" : "061",
"data" : [
[
@@ -1125,9 +1099,11 @@
"Blog",
14
]
- ]
+ ],
+ "id" : "061"
},
{
+ "name" : "062",
"data" : [
[
"Perl",
@@ -1142,7 +1118,6 @@
11
]
],
- "name" : "062",
"id" : "062"
},
{
@@ -1200,6 +1175,7 @@
"id" : "065"
},
{
+ "id" : "066",
"name" : "066",
"data" : [
[
@@ -1214,10 +1190,10 @@
"Blog",
14
]
- ],
- "id" : "066"
+ ]
},
{
+ "name" : "067",
"data" : [
[
"Perl",
@@ -1232,11 +1208,10 @@
18
]
],
- "name" : "067",
"id" : "067"
},
{
- "id" : "068",
+ "name" : "068",
"data" : [
[
"Perl",
@@ -1251,7 +1226,7 @@
13
]
],
- "name" : "068"
+ "id" : "068"
},
{
"data" : [
@@ -1290,6 +1265,7 @@
]
},
{
+ "id" : "071",
"name" : "071",
"data" : [
[
@@ -1304,8 +1280,7 @@
"Blog",
15
]
- ],
- "id" : "071"
+ ]
},
{
"name" : "072",
@@ -1362,6 +1337,7 @@
"id" : "074"
},
{
+ "name" : "075",
"data" : [
[
"Perl",
@@ -1376,11 +1352,10 @@
20
]
],
- "name" : "075",
"id" : "075"
},
{
- "name" : "076",
+ "id" : "076",
"data" : [
[
"Perl",
@@ -1395,9 +1370,10 @@
16
]
],
- "id" : "076"
+ "name" : "076"
},
{
+ "id" : "077",
"data" : [
[
"Perl",
@@ -1412,8 +1388,7 @@
14
]
],
- "name" : "077",
- "id" : "077"
+ "name" : "077"
},
{
"name" : "078",
@@ -1434,6 +1409,8 @@
"id" : "078"
},
{
+ "id" : "079",
+ "name" : "079",
"data" : [
[
"Perl",
@@ -1447,12 +1424,11 @@
"Blog",
17
]
- ],
- "name" : "079",
- "id" : "079"
+ ]
},
{
"id" : "080",
+ "name" : "080",
"data" : [
[
"Perl",
@@ -1466,11 +1442,9 @@
"