aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Sajid Anwar <mohammad.anwar@yahoo.com>2024-09-30 15:28:46 +0100
committerMohammad Sajid Anwar <mohammad.anwar@yahoo.com>2024-09-30 15:28:46 +0100
commitfb4ae25cbf52df4ae59b5b7dfbd32004b67be604 (patch)
treed4a20000e9c992ac58f2081ef4389db1d026c061
parent178d4e45aa6ff1bcc926830d279bdd1f54a0eaac (diff)
downloadperlweeklychallenge-club-fb4ae25cbf52df4ae59b5b7dfbd32004b67be604.tar.gz
perlweeklychallenge-club-fb4ae25cbf52df4ae59b5b7dfbd32004b67be604.tar.bz2
perlweeklychallenge-club-fb4ae25cbf52df4ae59b5b7dfbd32004b67be604.zip
- Added solutions by Eric Cheung.
- Added solutions by Jan Krnavek. - Added solutions by W. Luis Mochan. - Added solutions by Lubos Kolouch. - Added solutions by Robbie Hatley. - Added solutions by Paulo Custodio. - Added solutions by Niels van Dijke. - Added solutions by Conor Hoekstra. - Added solutions by Bob Lied. - Added solutions by Luca Ferrari.
-rwxr-xr-xchallenge-288/perlboy1967/perl/ch-1.pl (renamed from challenge-288/perlboy1967/perl/ch1.pl)0
-rwxr-xr-xchallenge-289/eric-cheung/python/ch-1.py13
-rwxr-xr-xchallenge-289/eric-cheung/python/ch-2.py17
-rwxr-xr-xchallenge-289/perlboy1967/perl/ch-1.pl (renamed from challenge-289/perlboy1967/perl/ch1.pl)0
-rwxr-xr-xchallenge-289/perlboy1967/perl/ch-2.pl (renamed from challenge-289/perlboy1967/perl/ch2.pl)0
-rw-r--r--stats/pwc-challenge-288.json544
-rw-r--r--stats/pwc-current.json513
-rw-r--r--stats/pwc-language-breakdown-2019.json634
-rw-r--r--stats/pwc-language-breakdown-2020.json804
-rw-r--r--stats/pwc-language-breakdown-2021.json388
-rw-r--r--stats/pwc-language-breakdown-2022.json420
-rw-r--r--stats/pwc-language-breakdown-2023.json414
-rw-r--r--stats/pwc-language-breakdown-2024.json635
-rw-r--r--stats/pwc-language-breakdown-summary.json72
-rw-r--r--stats/pwc-leaders.json820
-rw-r--r--stats/pwc-summary-1-30.json28
-rw-r--r--stats/pwc-summary-121-150.json100
-rw-r--r--stats/pwc-summary-151-180.json40
-rw-r--r--stats/pwc-summary-181-210.json58
-rw-r--r--stats/pwc-summary-211-240.json106
-rw-r--r--stats/pwc-summary-241-270.json98
-rw-r--r--stats/pwc-summary-271-300.json44
-rw-r--r--stats/pwc-summary-301-330.json40
-rw-r--r--stats/pwc-summary-31-60.json38
-rw-r--r--stats/pwc-summary-61-90.json50
-rw-r--r--stats/pwc-summary-91-120.json112
-rw-r--r--stats/pwc-summary.json714
-rw-r--r--stats/pwc-yearly-language-summary.json178
28 files changed, 3562 insertions, 3318 deletions
diff --git a/challenge-288/perlboy1967/perl/ch1.pl b/challenge-288/perlboy1967/perl/ch-1.pl
index 5e7a7e7b64..5e7a7e7b64 100755
--- a/challenge-288/perlboy1967/perl/ch1.pl
+++ b/challenge-288/perlboy1967/perl/ch-1.pl
diff --git a/challenge-289/eric-cheung/python/ch-1.py b/challenge-289/eric-cheung/python/ch-1.py
new file mode 100755
index 0000000000..c54d1cff0a
--- /dev/null
+++ b/challenge-289/eric-cheung/python/ch-1.py
@@ -0,0 +1,13 @@
+
+## arrInt = [5, 6, 4, 1] ## Example 1
+## arrInt = [4, 5] ## Example 2
+arrInt = [1, 2, 2, 3] ## Example 3
+
+arrOutput = sorted(set(arrInt), reverse = True)
+
+## print (arrOutput)
+
+if len(arrOutput) >= 3:
+ print (arrOutput[2])
+else:
+ print (arrOutput[0]) \ No newline at end of file
diff --git a/challenge-289/eric-cheung/python/ch-2.py b/challenge-289/eric-cheung/python/ch-2.py
new file mode 100755
index 0000000000..09f789c2a5
--- /dev/null
+++ b/challenge-289/eric-cheung/python/ch-2.py
@@ -0,0 +1,17 @@
+
+import random
+
+def GetWordShuffle (strInput):
+ arrChar = [nIndx for nIndx, charLoop in enumerate(strInput) if charLoop.isalpha()]
+
+ arrSubChar = [nIndx for nIndx in arrChar[1:-1]]
+ random.shuffle(arrSubChar)
+
+ return strInput[:arrChar[0] + 1] + "".join([strInput[nIndx] for nIndx in arrSubChar]) + strInput[arrChar[-1]]
+
+## strInput = "Perl" ## Example 1
+strInput = "According to a researcher (sic) at Cambridge University, it doesn't matter in what order the letters in a word are, the only important thing is that the first and last letter be at the right place. The rest can be a total mess and you can still read it without problem. This is because the human mind does not read every letter by itself but the word as a whole." ## Example 2
+
+strOutput = " ".join([GetWordShuffle(strLoop) for strLoop in strInput.split(" ")])
+
+print (strOutput)
diff --git a/challenge-289/perlboy1967/perl/ch1.pl b/challenge-289/perlboy1967/perl/ch-1.pl
index a8d0fc1315..a8d0fc1315 100755
--- a/challenge-289/perlboy1967/perl/ch1.pl
+++ b/challenge-289/perlboy1967/perl/ch-1.pl
diff --git a/challenge-289/perlboy1967/perl/ch2.pl b/challenge-289/perlboy1967/perl/ch-2.pl
index 73a486a55e..73a486a55e 100755
--- a/challenge-289/perlboy1967/perl/ch2.pl
+++ b/challenge-289/perlboy1967/perl/ch-2.pl
diff --git a/stats/pwc-challenge-288.json b/stats/pwc-challenge-288.json
new file mode 100644
index 0000000000..5535887ddf
--- /dev/null
+++ b/stats/pwc-challenge-288.json
@@ -0,0 +1,544 @@
+{
+ "subtitle" : {
+ "text" : "[Champions: 28] Last updated at 2024-09-30 14:28:18 GMT"
+ },
+ "drilldown" : {
+ "series" : [
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Andre Ploger",
+ "id" : "Andre Ploger"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Arne Sommer",
+ "name" : "Arne Sommer"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Athanasius",
+ "name" : "Athanasius"
+ },
+ {
+ "name" : "BarrOff",
+ "id" : "BarrOff",
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Bob Lied",
+ "id" : "Bob Lied"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Dave Jacoby",
+ "name" : "Dave Jacoby"
+ },
+ {
+ "id" : "David Ferrone",
+ "name" : "David Ferrone",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "name" : "E. Choroba",
+ "id" : "E. Choroba",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Feng Chang",
+ "name" : "Feng Chang"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "id" : "Jan Krnavek",
+ "name" : "Jan Krnavek"
+ },
+ {
+ "id" : "Jorg Sommrey",
+ "name" : "Jorg Sommrey",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Kjetil Skotheim",
+ "id" : "Kjetil Skotheim",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Raku",
+ 1
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Laurent Rosenfeld",
+ "name" : "Laurent Rosenfeld"
+ },
+ {
+ "id" : "Lubos Kolouch",
+ "name" : "Lubos Kolouch",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "name" : "Luca Ferrari",
+ "id" : "Luca Ferrari",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 3
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Matthias Muth",
+ "id" : "Matthias Muth"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ],
+ "id" : "Niels van Dijke",
+ "name" : "Niels van Dijke"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Packy Anderson",
+ "name" : "Packy Anderson"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Paulo Custodio",
+ "name" : "Paulo Custodio"
+ },
+ {
+ "id" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "Reinier Maliepaard",
+ "name" : "Reinier Maliepaard",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Robbie Hatley",
+ "id" : "Robbie Hatley",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Roger Bell_West",
+ "id" : "Roger Bell_West"
+ },
+ {
+ "id" : "Simon Green",
+ "name" : "Simon Green",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Torgny Lyon",
+ "name" : "Torgny Lyon",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Ulrich Rieke",
+ "id" : "Ulrich Rieke",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Raku",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "W. Luis Mochan",
+ "id" : "W. Luis Mochan",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ],
+ "name" : "Wanderdoc",
+ "id" : "Wanderdoc"
+ }
+ ]
+ },
+ "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/>"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "plotOptions" : {
+ "series" : {
+ "dataLabels" : {
+ "format" : "{point.y}",
+ "enabled" : 1
+ },
+ "borderWidth" : 0
+ }
+ },
+ "title" : {
+ "text" : "The Weekly Challenge - 288"
+ },
+ "series" : [
+ {
+ "data" : [
+ {
+ "name" : "Andre Ploger",
+ "drilldown" : "Andre Ploger",
+ "y" : 3
+ },
+ {
+ "name" : "Arne Sommer",
+ "drilldown" : "Arne Sommer",
+ "y" : 3
+ },
+ {
+ "y" : 4,
+ "drilldown" : "Athanasius",
+ "name" : "Athanasius"
+ },
+ {
+ "drilldown" : "BarrOff",
+ "name" : "BarrOff",
+ "y" : 1
+ },
+ {
+ "y" : 2,
+ "name" : "Bob Lied",
+ "drilldown" : "Bob Lied"
+ },
+ {
+ "y" : 2,
+ "name" : "Dave Jacoby",
+ "drilldown" : "Dave Jacoby"
+ },
+ {
+ "drilldown" : "David Ferrone",
+ "name" : "David Ferrone",
+ "y" : 2
+ },
+ {
+ "name" : "E. Choroba",
+ "drilldown" : "E. Choroba",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Feng Chang",
+ "name" : "Feng Chang",
+ "y" : 2
+ },
+ {
+ "y" : 1,
+ "drilldown" : "Jan Krnavek",
+ "name" : "Jan Krnavek"
+ },
+ {
+ "name" : "Jorg Sommrey",
+ "drilldown" : "Jorg Sommrey",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Kjetil Skotheim",
+ "name" : "Kjetil Skotheim",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Laurent Rosenfeld",
+ "name" : "Laurent Rosenfeld",
+ "y" : 3
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Lubos Kolouch",
+ "name" : "Lubos Kolouch"
+ },
+ {
+ "y" : 5,
+ "name" : "Luca Ferrari",
+ "drilldown" : "Luca Ferrari"
+ },
+ {
+ "drilldown" : "Matthias Muth",
+ "name" : "Matthias Muth",
+ "y" : 3
+ },
+ {
+ "drilldown" : "Niels van Dijke",
+ "name" : "Niels van Dijke",
+ "y" : 1
+ },
+ {
+ "y" : 5,
+ "drilldown" : "Packy Anderson",
+ "name" : "Packy Anderson"
+ },
+ {
+ "drilldown" : "Paulo Custodio",
+ "name" : "Paulo Custodio",
+ "y" : 2
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Reinier Maliepaard",
+ "name" : "Reinier Maliepaard"
+ },
+ {
+ "drilldown" : "Robbie Hatley",
+ "name" : "Robbie Hatley",
+ "y" : 3
+ },
+ {
+ "y" : 5,
+ "name" : "Roger Bell_West",
+ "drilldown" : "Roger Bell_West"
+ },
+ {
+ "drilldown" : "Simon Green",
+ "name" : "Simon Green",
+ "y" : 2
+ },
+ {
+ "y" : 3,
+ "name" : "Torgny Lyon",
+ "drilldown" : "Torgny Lyon"
+ },
+ {
+ "y" : 2,
+ "name" : "Ulrich Rieke",
+ "drilldown" : "Ulrich Rieke"
+ },
+ {
+ "drilldown" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan",
+ "y" : 3
+ },
+ {
+ "y" : 1,
+ "drilldown" : "Wanderdoc",
+ "name" : "Wanderdoc"
+ }
+ ],
+ "colorByPoint" : 1,
+ "name" : "The Weekly Challenge - 288"
+ }
+ ],
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "xAxis" : {
+ "type" : "category"
+ },
+ "chart" : {
+ "type" : "column"
+ }
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 9702ecebfc..676fc24744 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,319 +1,18 @@
{
- "chart" : {
- "type" : "column"
- },
- "series" : [
- {
- "name" : "The Weekly Challenge - 288",
- "data" : [
- {
- "drilldown" : "Andre Ploger",
- "name" : "Andre Ploger",
- "y" : 3
- },
- {
- "y" : 3,
- "name" : "Arne Sommer",
- "drilldown" : "Arne Sommer"
- },
- {
- "drilldown" : "Athanasius",
- "y" : 4,
- "name" : "Athanasius"
- },
- {
- "drilldown" : "BarrOff",
- "name" : "BarrOff",
- "y" : 1
- },
- {
- "drilldown" : "Dave Jacoby",
- "name" : "Dave Jacoby",
- "y" : 2
- },
- {
- "name" : "David Ferrone",
- "y" : 2,
- "drilldown" : "David Ferrone"
- },
- {
- "name" : "E. Choroba",
- "y" : 2,
- "drilldown" : "E. Choroba"
- },
- {
- "name" : "Feng Chang",
- "y" : 2,
- "drilldown" : "Feng Chang"
- },
- {
- "drilldown" : "Jorg Sommrey",
- "name" : "Jorg Sommrey",
- "y" : 3
- },
- {
- "name" : "Kjetil Skotheim",
- "y" : 2,
- "drilldown" : "Kjetil Skotheim"
- },
- {
- "name" : "Laurent Rosenfeld",
- "y" : 3,
- "drilldown" : "Laurent Rosenfeld"
- },
- {
- "drilldown" : "Lubos Kolouch",
- "y" : 2,
- "name" : "Lubos Kolouch"
- },
- {
- "name" : "Luca Ferrari",
- "y" : 5,
- "drilldown" : "Luca Ferrari"
- },
- {
- "name" : "Matthias Muth",
- "y" : 3,
- "drilldown" : "Matthias Muth"
- },
- {
- "y" : 5,
- "name" : "Packy Anderson",
- "drilldown" : "Packy Anderson"
- },
- {
- "drilldown" : "Paulo Custodio",
- "y" : 2,
- "name" : "Paulo Custodio"
- },
- {
- "drilldown" : "Peter Campbell Smith",
- "name" : "Peter Campbell Smith",
- "y" : 3
- },
- {
- "y" : 2,
- "name" : "Reinier Maliepaard",
- "drilldown" : "Reinier Maliepaard"
- },
- {
- "y" : 3,
- "name" : "Robbie Hatley",
- "drilldown" : "Robbie Hatley"
- },
- {
- "drilldown" : "Roger Bell_West",
- "name" : "Roger Bell_West",
- "y" : 5
- },
- {
- "drilldown" : "Simon Green",
- "y" : 2,
- "name" : "Simon Green"
- },
- {
- "drilldown" : "Torgny Lyon",
- "y" : 3,
- "name" : "Torgny Lyon"
- },
- {
- "name" : "Ulrich Rieke",
- "y" : 2,
- "drilldown" : "Ulrich Rieke"
- },
- {
- "drilldown" : "W. Luis Mochan",
- "name" : "W. Luis Mochan",
- "y" : 3
- },
- {
- "drilldown" : "Wanderdoc",
- "name" : "Wanderdoc",
- "y" : 1
- }
- ],
- "colorByPoint" : 1
- }
- ],
- "title" : {
- "text" : "The Weekly Challenge - 288"
- },
- "legend" : {
- "enabled" : 0
- },
- "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/>"
- },
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
- },
- "plotOptions" : {
- "series" : {
- "borderWidth" : 0,
- "dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
- }
- }
- },
- "xAxis" : {
- "type" : "category"
- },
"drilldown" : {
"series" : [
{
- "name" : "Andre Ploger",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "Andre Ploger"
- },
- {
- "data" : [
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Arne Sommer",
- "id" : "Arne Sommer"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ]
- ],
- "name" : "Athanasius",
- "id" : "Athanasius"
- },
- {
- "id" : "BarrOff",
- "name" : "BarrOff",
- "data" : [
- [
- "Raku",
- 1
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Dave Jacoby",
- "id" : "Dave Jacoby"
- },
- {
- "id" : "David Ferrone",
- "name" : "David Ferrone",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "id" : "E. Choroba",
- "name" : "E. Choroba",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "name" : "Feng Chang",
- "data" : [
- [
- "Raku",
- 2
- ]
- ],
- "id" : "Feng Chang"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Jorg Sommrey",
- "id" : "Jorg Sommrey"
- },
- {
- "id" : "Kjetil Skotheim",
- "name" : "Kjetil Skotheim",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ],
- [
- "Raku",
- 1
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Laurent Rosenfeld",
- "id" : "Laurent Rosenfeld"
- },
- {
"name" : "Lubos Kolouch",
+ "id" : "Lubos Kolouch",
"data" : [
[
"Perl",
2
]
- ],
- "id" : "Lubos Kolouch"
+ ]
},
{
+ "name" : "Luca Ferrari",
"id" : "Luca Ferrari",
"data" : [
[
@@ -322,152 +21,41 @@
],
[
"Blog",
- 3
+ 10
]
- ],
- "name" : "Luca Ferrari"
+ ]
},
{
- "id" : "Matthias Muth",
"data" : [
[
"Perl",
2
- ],
-