aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2024-06-24 22:49:14 +0100
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2024-06-24 22:49:14 +0100
commitb07b0b03e415426e49e0c43f71de0a27a3cc65a4 (patch)
treed628feac980890b27f04896e3f9a4d78371f239a
parent4b157dc2dab7a337e488dfb8f388c217ceff6292 (diff)
downloadperlweeklychallenge-club-b07b0b03e415426e49e0c43f71de0a27a3cc65a4.tar.gz
perlweeklychallenge-club-b07b0b03e415426e49e0c43f71de0a27a3cc65a4.tar.bz2
perlweeklychallenge-club-b07b0b03e415426e49e0c43f71de0a27a3cc65a4.zip
- Added solutions by Joelle Maslak.
- Added solutions by Thomas Kohler. - Added solutions by Niels van Dijke. - Added solutions by Feng Chang. - Added solutions by PokGoPun. - Added solutions by Luca Ferrari. - Added solutions by Mark Anderson. - Added solutions by Steven Wilson. - Added solutions by Peter Campbell Smith. - Added solutions by Peter Meszaros. - Added solutions by E. Choroba. - Added solutions by W. Luis Mochan. - Added solutions by Eric Cheung.
-rwxr-xr-xchallenge-275/eric-cheung/python/ch-1.py27
-rwxr-xr-xchallenge-275/eric-cheung/python/ch-2.py18
-rwxr-xr-xchallenge-275/perlboy1967/perl/ch-1.pl (renamed from challenge-275/perlboy1967/perl/ch1.pl)0
-rwxr-xr-xchallenge-275/perlboy1967/perl/ch-2.pl (renamed from challenge-275/perlboy1967/perl/ch2.pl)0
-rw-r--r--stats/pwc-challenge-274.json574
-rw-r--r--stats/pwc-current.json452
-rw-r--r--stats/pwc-language-breakdown-summary.json36
-rw-r--r--stats/pwc-language-breakdown.json3899
-rw-r--r--stats/pwc-leaders.json828
-rw-r--r--stats/pwc-summary-1-30.json58
-rw-r--r--stats/pwc-summary-121-150.json98
-rw-r--r--stats/pwc-summary-151-180.json118
-rw-r--r--stats/pwc-summary-181-210.json44
-rw-r--r--stats/pwc-summary-211-240.json58
-rw-r--r--stats/pwc-summary-241-270.json54
-rw-r--r--stats/pwc-summary-271-300.json104
-rw-r--r--stats/pwc-summary-301-330.json60
-rw-r--r--stats/pwc-summary-31-60.json102
-rw-r--r--stats/pwc-summary-61-90.json56
-rw-r--r--stats/pwc-summary-91-120.json92
-rw-r--r--stats/pwc-summary.json696
21 files changed, 3830 insertions, 3544 deletions
diff --git a/challenge-275/eric-cheung/python/ch-1.py b/challenge-275/eric-cheung/python/ch-1.py
new file mode 100755
index 0000000000..ae16d9a130
--- /dev/null
+++ b/challenge-275/eric-cheung/python/ch-1.py
@@ -0,0 +1,27 @@
+
+## Example 1
+## strSentence = "Perl Weekly Challenge"
+## arrKey = ["l", "a"]
+
+## Example 2
+## strSentence = "Perl and Raku"
+## arrKey = ["a"]
+
+## Example 3
+## strSentence = "Well done Team PWC"
+## arrKey = ["l", "o"]
+
+## Example 4
+strSentence = "The joys of polyglottism"
+arrKey = ["T"]
+
+arrKeyLower = [charLoop.lower() for charLoop in arrKey]
+
+nCount = 0
+for wordLoop in strSentence.split():
+ ## print (wordLoop)
+ arrContain = [charLoop for charLoop in wordLoop.lower() if charLoop in arrKeyLower]
+ if len(arrContain) == 0:
+ nCount = nCount + 1
+
+print (nCount)
diff --git a/challenge-275/eric-cheung/python/ch-2.py b/challenge-275/eric-cheung/python/ch-2.py
new file mode 100755
index 0000000000..c243ed3899
--- /dev/null
+++ b/challenge-275/eric-cheung/python/ch-2.py
@@ -0,0 +1,18 @@
+
+## strInput = "a1c1e1" ## Example 1
+## strInput = "a1b2c3d4" ## Example 2
+## strInput = "b2b" ## Example 3
+strInput = "a16z" ## Example 4
+
+arrList = list(strInput)
+arrPosNum = [nIndx for nIndx, charLoop in enumerate(strInput) if charLoop.isdigit()]
+arrPosChar = [nIndx for nIndx, charLoop in enumerate(strInput) if charLoop.isalpha()]
+
+## print (arrPosNum)
+## print (arrPosChar)
+
+for nIndx in arrPosNum:
+ LastChar = strInput[[nLoop for nLoop in arrPosChar if nLoop < nIndx][-1]]
+ arrList[nIndx] = chr(ord(LastChar) + int(arrList[nIndx]))
+
+print ("".join(arrList))
diff --git a/challenge-275/perlboy1967/perl/ch1.pl b/challenge-275/perlboy1967/perl/ch-1.pl
index 624b8fb931..624b8fb931 100755
--- a/challenge-275/perlboy1967/perl/ch1.pl
+++ b/challenge-275/perlboy1967/perl/ch-1.pl
diff --git a/challenge-275/perlboy1967/perl/ch2.pl b/challenge-275/perlboy1967/perl/ch-2.pl
index ccd347c497..ccd347c497 100755
--- a/challenge-275/perlboy1967/perl/ch2.pl
+++ b/challenge-275/perlboy1967/perl/ch-2.pl
diff --git a/stats/pwc-challenge-274.json b/stats/pwc-challenge-274.json
new file mode 100644
index 0000000000..e079a4fb06
--- /dev/null
+++ b/stats/pwc-challenge-274.json
@@ -0,0 +1,574 @@
+{
+ "chart" : {
+ "type" : "column"
+ },
+ "title" : {
+ "text" : "The Weekly Challenge - 274"
+ },
+ "plotOptions" : {
+ "series" : {
+ "borderWidth" : 0,
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ }
+ }
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "drilldown" : {
+ "series" : [
+ {
+ "name" : "Andrew Schneider",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Andrew Schneider"
+ },
+ {
+ "name" : "Arne Sommer",
+ "id" : "Arne Sommer",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Athanasius",
+ "name" : "Athanasius"
+ },
+ {
+ "name" : "BarrOff",
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "BarrOff"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Bob Lied",
+ "name" : "Bob Lied"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Bruce Gray",
+ "name" : "Bruce Gray"
+ },
+ {
+ "id" : "Cheok-Yin Fung",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Cheok-Yin Fung"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Dave Jacoby",
+ "name" : "Dave Jacoby"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "David Ferrone",
+ "name" : "David Ferrone"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "E. Choroba",
+ "name" : "E. Choroba"
+ },
+ {
+ "id" : "Feng Chang",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "name" : "Feng Chang"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Jan Krnavek",
+ "name" : "Jan Krnavek"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Joelle Maslak",
+ "name" : "Joelle Maslak"
+ },
+ {
+ "name" : "Jorg Sommrey",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Jorg Sommrey"
+ },
+ {
+ "name" : "Laurent Rosenfeld",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Raku",
+ 1
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Laurent Rosenfeld"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ],
+ "id" : "Luca Ferrari",
+ "name" : "Luca Ferrari"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ],
+ "id" : "Mariano Spadaccini",
+ "name" : "Mariano Spadaccini"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Mark Anderson",
+ "name" : "Mark Anderson"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Matthew Neleigh",
+ "name" : "Matthew Neleigh"
+ },
+ {
+ "id" : "Matthias Muth",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Matthias Muth"
+ },
+ {
+ "name" : "Nelo Tovar",
+ "id" : "Nelo Tovar",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Packy Anderson",
+ "name" : "Packy Anderson"
+ },
+ {
+ "id" : "Peter Campbell Smith",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Peter Campbell Smith"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Peter Meszaros",
+ "name" : "Peter Meszaros"
+ },
+ {
+ "id" : "Robbie Hatley",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Robbie Hatley"
+ },
+ {
+ "id" : "Roger Bell_West",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Roger Bell_West"
+ },
+ {
+ "name" : "Simon Green",
+ "id" : "Simon Green",
+ "data" : [
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Thomas Kohler",
+ "id" : "Thomas Kohler",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ]
+ },
+ {
+ "name" : "Ulrich Rieke",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Ulrich Rieke"
+ },
+ {
+ "id" : "W. Luis Mochan",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "W. Luis Mochan"
+ }
+ ]
+ },
+ "tooltip" : {
+ "followPointer" : 1,
+ "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/>"
+ },
+ "series" : [
+ {
+ "data" : [
+ {
+ "name" : "Andrew Schneider",
+ "drilldown" : "Andrew Schneider",
+ "y" : 3
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Arne Sommer",
+ "name" : "Arne Sommer"
+ },
+ {
+ "name" : "Athanasius",
+ "drilldown" : "Athanasius",
+ "y" : 4
+ },
+ {
+ "name" : "BarrOff",
+ "y" : 1,
+ "drilldown" : "BarrOff"
+ },
+ {
+ "name" : "Bob Lied",
+ "y" : 3,
+ "drilldown" : "Bob Lied"
+ },
+ {
+ "name" : "Bruce Gray",
+ "drilldown" : "Bruce Gray",
+ "y" : 2
+ },
+ {
+ "name" : "Cheok-Yin Fung",
+ "y" : 2,
+ "drilldown" : "Cheok-Yin Fung"
+ },
+ {
+ "drilldown" : "Dave Jacoby",
+ "y" : 2,
+ "name" : "Dave Jacoby"
+ },
+ {
+ "name" : "David Ferrone",
+ "drilldown" : "David Ferrone",
+ "y" : 2
+ },
+ {
+ "y" : 2,
+ "drilldown" : "E. Choroba",
+ "name" : "E. Choroba"
+ },
+ {
+ "name" : "Feng Chang",
+ "y" : 2,
+ "drilldown" : "Feng Chang"
+ },
+ {
+ "drilldown" : "Jan Krnavek",
+ "y" : 2,
+ "name" : "Jan Krnavek"
+ },
+ {
+ "drilldown" : "Joelle Maslak",
+ "y" : 4,
+ "name" : "Joelle Maslak"
+ },
+ {
+ "name" : "Jorg Sommrey",
+ "drilldown" : "Jorg Sommrey",
+ "y" : 3
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Laurent Rosenfeld",
+ "name" : "Laurent Rosenfeld"
+ },
+ {
+ "drilldown" : "Luca Ferrari",
+ "y" : 4,
+ "name" : "Luca Ferrari"
+ },
+ {
+ "name" : "Mariano Spadaccini",
+ "y" : 1,
+ "drilldown" : "Mariano Spadaccini"
+ },
+ {
+ "drilldown" : "Mark Anderson",
+ "y" : 2,
+ "name" : "Mark Anderson"
+ },
+ {
+ "name" : "Matthew Neleigh",
+ "y" : 2,
+ "drilldown" : "Matthew Neleigh"
+ },
+ {
+ "drilldown" : "Matthias Muth",
+ "y" : 3,
+ "name" : "Matthias Muth"
+ },
+ {
+ "y" : 1,
+ "drilldown" : "Nelo Tovar",
+ "name" : "Nelo Tovar"
+ },
+ {
+ "name" : "Packy Anderson",
+ "y" : 5,
+ "drilldown" : "Packy Anderson"
+ },
+ {
+ "name" : "Peter Campbell Smith",
+ "y" : 3,
+ "drilldown" : "Peter Campbell Smith"
+ },
+ {
+ "name" : "Peter Meszaros",
+ "y" : 2,
+ "drilldown" : "Peter Meszaros"
+ },
+ {
+ "drilldown" : "Robbie Hatley",
+ "y" : 3,
+ "name" : "Robbie Hatley"
+ },
+ {
+ "name" : "Roger Bell_West",
+ "drilldown" : "Roger Bell_West",
+ "y" : 5
+ },
+ {
+ "name" : "Simon Green",
+ "y" : 1,
+ "drilldown" : "Simon Green"
+ },
+ {
+ "y" : 4,
+ "drilldown" : "Thomas Kohler",
+ "name" : "Thomas Kohler"
+ },
+ {
+ "name" : "Ulrich Rieke",
+ "drilldown" : "Ulrich Rieke",
+ "y" : 4
+ },
+ {
+ "y" : 3,
+ "drilldown" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan"
+ }
+ ],
+ "name" : "The Weekly Challenge - 274",
+ "colorByPoint" : 1
+ }
+ ],
+ "xAxis" : {
+ "type" : "category"
+ },
+ "subtitle" : {
+ "text" : "[Champions: 30] Last updated at 2024-06-24 21:40:57 GMT"
+ }
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index dd797e5529..e92baf2bba 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -2,128 +2,17 @@
"chart" : {
"type" : "column"
},
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
- },
"drilldown" : {
"series" : [
{
- "id" : "Andrew Schneider",
- "name" : "Andrew Schneider",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "id" : "Arne Sommer",
- "name" : "Arne Sommer",
- "data" : [
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ]
- ],
- "id" : "Athanasius",
- "name" : "Athanasius"
- },
- {
- "name" : "BarrOff",
- "id" : "BarrOff",
- "data" : [
- [
- "Raku",
- 1
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Bob Lied",
- "id" : "Bob Lied"
- },
- {
- "data" : [
- [
- "Raku",
- 2
- ]
- ],
- "id" : "Bruce Gray",
- "name" : "Bruce Gray"
- },
- {
"data" : [
[
"Perl",
2
]
],
- "name" : "Cheok-Yin Fung",
- "id" : "Cheok-Yin Fung"
- },
- {
- "id" : "Dave Jacoby",
- "name" : "Dave Jacoby",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "name" : "David Ferrone",
- "id" : "David Ferrone",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
"id" : "E. Choroba",
- "name" : "E. Choroba",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
+ "name" : "E. Choroba"
},
{
"name" : "Feng Chang",
@@ -136,18 +25,6 @@
]
},
{
- "name" : "Jan Krnavek",
- "id" : "Jan Krnavek",
- "data" : [
- [
- "Raku",
- 2
- ]
- ]
- },
- {
- "id" : "Joelle Maslak",
- "name" : "Joelle Maslak",
"data" : [
[
"Perl",
@@ -157,41 +34,13 @@
"Raku",
2
]
- ]
- },
- {
- "name" : "Jorg Sommrey",
- "id" : "Jorg Sommrey",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ],
- [
- "Raku",
- 1
- ],
- [
- "Blog",
- 1
- ]
],
- "name" : "Laurent Rosenfeld",
- "id" : "Laurent Rosenfeld"
+ "id" : "Joelle Maslak",
+ "name" : "Joelle Maslak"
},
{
+ "id" : "Luca Ferrari",
+ "name" : "Luca Ferrari",
"data" : [
[
"Raku",
@@ -199,21 +48,9 @@
],
[
"Blog",
- 2
- ]
- ],
- "id" : "Luca Ferrari",
- "name" : "Luca Ferrari"
- },
- {
- "data" : [
- [
- "Perl",
- 1
+ 9
]
- ],
- "name" : "Mariano Spadaccini",
- "id" : "Mariano Spadaccini"
+ ]
},
{
"data" : [
@@ -226,55 +63,13 @@
"name" : "Mark Anderson"
},
{
+ "name" : "Niels van Dijke",
+ "id" : "Niels van Dijke",
"data" : [
[
"Perl",
2
]
- ],
- "name" : "Matthew Neleigh",
- "id" : "Matthew Neleigh"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Matthias Muth",
- "name" : "Matthias Muth"
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ]
- ],
- "name" : "Nelo Tovar",
- "id" : "Nelo Tovar"
- },
- {
- "id" : "Packy Anderson",
- "name" : "Packy Anderson",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
]
},
{
@@ -292,60 +87,16 @@
]
},
{
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
+ "name" : "Peter Meszaros",
"id" : "Peter Meszaros",
- "name" : "Peter Meszaros"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Robbie Hatley",
- "id" : "Robbie Hatley"
- },
- {
- "name" : "Roger Bell_West",
- "id" : "Roger Bell_West",
"data" : [
[
"Perl",
2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "name" : "Simon Green",
- "id" : "Simon Green",
- "data" : [
- [
- "Blog",
- 1
]
]
},
{
- "id" : "Thomas Kohler",
- "name" : "Thomas Kohler",
"data" : [
[
"Perl",
@@ -355,23 +106,13 @@
"Blog",
2
]
- ]
- },
- {
- "id" : "Ulrich Rieke",
- "name" : "Ulrich Rieke",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ]
- ]
+ ],
+ "name" : "Thomas Kohler",
+ "id" : "Thomas Kohler"
},
{
+ "name" : "W. Luis Mochan",
+ "id" : "W. Luis Mochan",
"data" : [
[
"Perl",
@@ -381,94 +122,45 @@
"Blog",
1
]
- ],
- "id" : "W. Luis Mochan",
- "name" : "W. Luis Mochan"
+ ]
}
]
},
"legend" : {
"enabled" : 0
},
- "subtitle" : {
- "text" : "[Champions: 30] Last updated at 2024-06-24 01:12:42 GMT"
+ "title" : {
+ "text" : "The Weekly Challenge - 275"
+ },
+ "xAxis" : {
+ "type" : "category"
},
"plotOptions" : {
"series" : {
+ "borderWidth" : 0,
"dataLabels" : {
"enabled" : 1,
"format" : "{point.y}"
- },
- "borderWidth" : 0
+ }
}
},
- "title" : {
- "text" : "The Weekly Challenge - 274"
+ "yAxis" : {