aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Sajid Anwar <mohammad.anwar@yahoo.com>2025-10-20 16:59:39 +0100
committerMohammad Sajid Anwar <mohammad.anwar@yahoo.com>2025-10-20 16:59:39 +0100
commit79fbae1caeecaa7ecf19384997d7955baa548591 (patch)
tree85a00a8c8d938ad31c239fd853ce46872cfe87eb
parent825716d3c81ed9d4659931c741b83b03717e5d47 (diff)
downloadperlweeklychallenge-club-79fbae1caeecaa7ecf19384997d7955baa548591.tar.gz
perlweeklychallenge-club-79fbae1caeecaa7ecf19384997d7955baa548591.tar.bz2
perlweeklychallenge-club-79fbae1caeecaa7ecf19384997d7955baa548591.zip
- Added solutions by Eric Cheung.
- Added solutions by Andrew Shitov. - Added solutions by Mark Anderson. - Added solutions by Jaldhar H. Vyas. - Added solutions by Benjamin Andre. - Added solutions by Andreas Mahnke. - Added solutions by E. Choroba. - Added solutions by PokGoPun. - Added solutions by Vinod Kumar K. - Added solutions by Luca Ferrari. - Added solutions by David Ferrone.
-rwxr-xr-xchallenge-344/eric-cheung/python/ch-1.py25
-rwxr-xr-xchallenge-344/eric-cheung/python/ch-2.py34
-rw-r--r--stats/pwc-challenge-343.json600
-rw-r--r--stats/pwc-current.json440
-rw-r--r--stats/pwc-language-breakdown-2019.json2
-rw-r--r--stats/pwc-language-breakdown-2020.json2
-rw-r--r--stats/pwc-language-breakdown-2021.json2
-rw-r--r--stats/pwc-language-breakdown-2022.json2
-rw-r--r--stats/pwc-language-breakdown-2023.json2
-rw-r--r--stats/pwc-language-breakdown-2024.json2
-rw-r--r--stats/pwc-language-breakdown-2025.json33
-rw-r--r--stats/pwc-language-breakdown-summary.json8
-rw-r--r--stats/pwc-leaders.json32
-rw-r--r--stats/pwc-summary-1-30.json6
-rw-r--r--stats/pwc-summary-121-150.json2
-rw-r--r--stats/pwc-summary-151-180.json8
-rw-r--r--stats/pwc-summary-181-210.json2
-rw-r--r--stats/pwc-summary-211-240.json2
-rw-r--r--stats/pwc-summary-241-270.json2
-rw-r--r--stats/pwc-summary-271-300.json2
-rw-r--r--stats/pwc-summary-301-330.json4
-rw-r--r--stats/pwc-summary-31-60.json2
-rw-r--r--stats/pwc-summary-61-90.json6
-rw-r--r--stats/pwc-summary-91-120.json8
-rw-r--r--stats/pwc-summary.json26
-rw-r--r--stats/pwc-yearly-language-summary.json10
26 files changed, 763 insertions, 501 deletions
diff --git a/challenge-344/eric-cheung/python/ch-1.py b/challenge-344/eric-cheung/python/ch-1.py
new file mode 100755
index 0000000000..23cff3d29a
--- /dev/null
+++ b/challenge-344/eric-cheung/python/ch-1.py
@@ -0,0 +1,25 @@
+
+## Example 1
+## arrInt = [1, 2, 3, 4]
+## nX = 12
+
+## Example 2
+## arrInt = [2, 7, 4]
+## nX = 181
+
+## Example 3
+## arrInt = [9, 9, 9]
+## nX = 1
+
+## Example 4
+## arrInt = [1, 0, 0, 0, 0]
+## nX = 9999
+
+## Example 5
+arrInt = [0]
+nX = 1000
+
+nOutput = int("".join([str(nLoop) for nLoop in arrInt])) + nX
+arrOutput = [int(strLoop) for strLoop in str(nOutput)]
+
+print (arrOutput)
diff --git a/challenge-344/eric-cheung/python/ch-2.py b/challenge-344/eric-cheung/python/ch-2.py
new file mode 100755
index 0000000000..6aaef3792d
--- /dev/null
+++ b/challenge-344/eric-cheung/python/ch-2.py
@@ -0,0 +1,34 @@
+
+from itertools import permutations
+
+## Example 1
+## arrSource = [[2, 3], [1], [4]]
+## arrTarget = [1, 2, 3, 4]
+
+## Example 2
+## arrSource = [[1, 3], [2, 4]]
+## arrTarget = [1, 2, 3, 4]
+
+## Example 3
+## arrSource = [[9, 1], [5, 8], [2]]
+## arrTarget = [5, 8, 2, 9, 1]
+
+## Example 4
+## arrSource = [[1], [3]]
+## arrTarget = [1, 2, 3]
+
+## Example 5
+arrSource = [[7, 4, 6]]
+arrTarget = [7, 4, 6]
+
+strTarget = "".join(map(str, arrTarget))
+arrPerm = permutations(arrSource)
+
+bIsFound = False
+for arrLoop in arrPerm:
+ strTemp = "".join(["".join(map(str, arrSubLoop)) for arrSubLoop in arrLoop])
+ if strTarget == strTemp:
+ bIsFound = True
+ break
+
+print (bIsFound)
diff --git a/stats/pwc-challenge-343.json b/stats/pwc-challenge-343.json
new file mode 100644
index 0000000000..0e98ac7fbc
--- /dev/null
+++ b/stats/pwc-challenge-343.json
@@ -0,0 +1,600 @@
+{
+ "chart" : {
+ "type" : "column"
+ },
+ "drilldown" : {
+ "series" : [
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Ali Moradi",
+ "name" : "Ali Moradi"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Andreas Mahnke",
+ "name" : "Andreas Mahnke"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "Andrew Shitov",
+ "name" : "Andrew Shitov"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Arne Sommer",
+ "name" : "Arne Sommer"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "Asher Harvey-Smith",
+ "name" : "Asher Harvey-Smith"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "Athanasius",
+ "name" : "Athanasius"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "BarrOff",
+ "name" : "BarrOff"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Bob Lied",
+ "name" : "Bob Lied"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "David Ferrone",
+ "name" : "David Ferrone"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "E. Choroba",
+ "name" : "E. Choroba"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Feng Chang",
+ "name" : "Feng Chang"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Jaldhar H. Vyas",
+ "name" : "Jaldhar H. Vyas"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Jan Krnavek",
+ "name" : "Jan Krnavek"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Jorg Sommrey",
+ "name" : "Jorg Sommrey"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Lubos Kolouch",
+ "name" : "Lubos Kolouch"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Mark Anderson",
+ "name" : "Mark Anderson"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Matthew Neleigh",
+ "name" : "Matthew Neleigh"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Matthias Muth",
+ "name" : "Matthias Muth"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "Mohammad Sajid Anwar",
+ "name" : "Mohammad Sajid Anwar"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Niels van Dijke",
+ "name" : "Niels van Dijke"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Packy Anderson",
+ "name" : "Packy Anderson"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Peter Meszaros",
+ "name" : "Peter Meszaros"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Robbie Hatley",
+ "name" : "Robbie Hatley"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Roger Bell_West",
+ "name" : "Roger Bell_West"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Ryan Thompson",
+ "name" : "Ryan Thompson"
+ },
+ {
+ "data" : [
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Simon Green",
+ "name" : "Simon Green"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ],
+ "id" : "Thomas Kohler",
+ "name" : "Thomas Kohler"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Vinod Kumar K",
+ "name" : "Vinod Kumar K"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Wanderdoc",
+ "name" : "Wanderdoc"
+ }
+ ]
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "plotOptions" : {
+ "series" : {
+ "borderWidth" : 0,
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ }
+ }
+ },
+ "series" : [
+ {
+ "colorByPoint" : 1,
+ "data" : [
+ {
+ "drilldown" : "Ali Moradi",
+ "name" : "Ali Moradi",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Andreas Mahnke",
+ "name" : "Andreas Mahnke",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Andrew Shitov",
+ "name" : "Andrew Shitov",
+ "y" : 1
+ },
+ {
+ "drilldown" : "Arne Sommer",
+ "name" : "Arne Sommer",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Asher Harvey-Smith",
+ "name" : "Asher Harvey-Smith",
+ "y" : 1
+ },
+ {
+ "drilldown" : "Athanasius",
+ "name" : "Athanasius",
+ "y" : 2
+ },
+ {
+ "drilldown" : "BarrOff",
+ "name" : "BarrOff",
+ "y" : 1
+ },
+ {
+ "drilldown" : "Bob Lied",
+ "name" : "Bob Lied",
+ "y" : 2
+ },
+ {
+ "drilldown" : "David Ferrone",
+ "name" : "David Ferrone",
+ "y" : 2
+ },
+ {
+ "drilldown" : "E. Choroba",
+ "name" : "E. Choroba",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Feng Chang",
+ "name" : "Feng Chang",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Jaldhar H. Vyas",
+ "name" : "Jaldhar H. Vyas",
+ "y" : 5
+ },
+ {
+ "drilldown" : "Jan Krnavek",
+ "name" : "Jan Krnavek",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Jorg Sommrey",
+ "name" : "Jorg Sommrey",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Lubos Kolouch",
+ "name" : "Lubos Kolouch",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Mark Anderson",
+ "name" : "Mark Anderson",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Matthew Neleigh",
+ "name" : "Matthew Neleigh",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Matthias Muth",
+ "name" : "Matthias Muth",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Mohammad Sajid Anwar",
+ "name" : "Mohammad Sajid Anwar",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Niels van Dijke",
+ "name" : "Niels van Dijke",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Packy Anderson",
+ "name" : "Packy Anderson",
+ "y" : 5
+ },
+ {
+ "drilldown" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Peter Meszaros",
+ "name" : "Peter Meszaros",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Robbie Hatley",
+ "name" : "Robbie Hatley",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Roger Bell_West",
+ "name" : "Roger Bell_West",
+ "y" : 5
+ },
+ {
+ "drilldown" : "Ryan Thompson",
+ "name" : "Ryan Thompson",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Simon Green",
+ "name" : "Simon Green",
+ "y" : 1
+ },
+ {
+ "drilldown" : "Thomas Kohler",
+ "name" : "Thomas Kohler",
+ "y" : 4
+ },
+ {
+ "drilldown" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke",
+ "y" : 4
+ },
+ {
+ "drilldown" : "Vinod Kumar K",
+ "name" : "Vinod Kumar K",
+ "y" : 2
+ },
+ {
+ "drilldown" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Wanderdoc",
+ "name" : "Wanderdoc",
+ "y" : 2
+ }
+ ],
+ "name" : "The Weekly Challenge - 343"
+ }
+ ],
+ "subtitle" : {
+ "text" : "[Champions: 32] Last updated at 2025-10-20 15:53:52 GMT"
+ },
+ "title" : {
+ "text" : "The Weekly Challenge - 343"
+ },
+ "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/>"
+ },
+ "xAxis" : {
+ "type" : "category"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ }
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 4ea2bb190b..024dadeadb 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -9,20 +9,6 @@
[
"Perl",
2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Ali Moradi",
- "name" : "Ali Moradi"
- },
- {
- "data" : [
- [
- "Perl",
- 2
]
],
"id" : "Andreas Mahnke",
@@ -32,7 +18,7 @@
"data" : [
[
"Raku",
- 1
+ 2
]
],
"id" : "Andrew Shitov",
@@ -41,64 +27,6 @@
{
"data" : [
[
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Arne Sommer",
- "name" : "Arne Sommer"
- },
- {
- "data" : [
- [
- "Raku",
- 1
- ]
- ],
- "id" : "Asher Harvey-Smith",
- "name" : "Asher Harvey-Smith"
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ],
- [
- "Raku",
- 1
- ]
- ],
- "id" : "Athanasius",
- "name" : "Athanasius"
- },
- {
- "data" : [
- [
- "Raku",
- 1
- ]
- ],
- "id" : "BarrOff",
- "name" : "BarrOff"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Bob Lied",
- "name" : "Bob Lied"
- },
- {
- "data" : [
- [
"Perl",
2
]
@@ -121,50 +49,20 @@
[
"Raku",
2
- ]
- ],
- "id" : "Feng Chang",
- "name" : "Feng Chang"
- },
- {
- "data" : [
- [
- "Raku",
- 2
- ]
- ],
- "id" : "Jan Krnavek",
- "name" : "Jan Krnavek"
- },
- {
- "data" : [
- [
- "Perl",
- 2
],
[
"Blog",
- 1
- ]
- ],
- "id" : "Jorg Sommrey",
- "name" : "Jorg Sommrey"
- },
- {
- "data" : [
- [
- "Perl",
2
]
],
- "id" : "Lubos Kolouch",
- "name" : "Lubos Kolouch"
+ "id" : "Luca Ferrari",
+ "name" : "Luca Ferrari"
},
{
"data" : [
[
"Raku",
- 2
+ 1
]
],
"id" : "Mark Anderson",
@@ -177,206 +75,8 @@
2
]
],
- "id" : "Matthew Neleigh",
- "name" : "Matthew Neleigh"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Matthias Muth",
- "name" : "Matthias Muth"
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ],
- [
- "Raku",
- 1
- ]
- ],
- "id" : "Mohammad Sajid Anwar",
- "name" : "Mohammad Sajid Anwar"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Niels van Dijke",
- "name" : "Niels van Dijke"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Packy Anderson",
- "name" : "Packy Anderson"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Peter Campbell Smith",
- "name" : "Peter Campbell Smith"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Peter Meszaros",
- "name" : "Peter Meszaros"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Robbie Hatley",
- "name" : "Robbie Hatley"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Roger Bell_West",
- "name" : "Roger Bell_West"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Ryan Thompson",
- "name" : "Ryan Thompson"
- },
- {
- "data" : [
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Simon Green",
- "name" : "Simon Green"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 2
- ]
- ],
- "id" : "Thomas Kohler",
- "name" : "Thomas Kohler"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ]
- ],
- "id" : "Ulrich Rieke",
- "name" : "Ulrich Rieke"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
"id" : "Vinod Kumar K",
"name" : "Vinod Kumar K"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "W. Luis Mochan",
- "name" : "W. Luis Mochan"
- },
- {
- "data" : [
- [
-