aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Sajid Anwar <mohammad.anwar@yahoo.com>2024-08-26 13:36:59 +0100
committerMohammad Sajid Anwar <mohammad.anwar@yahoo.com>2024-08-26 13:36:59 +0100
commitb702e4cb4824a9313869b6228e19bf96c27fa09a (patch)
treecfeff406270b295c2f3e966e81c9c0aae0c9ccba
parent15ecba2d6694e64c52574efd72163efff8f7c1da (diff)
downloadperlweeklychallenge-club-b702e4cb4824a9313869b6228e19bf96c27fa09a.tar.gz
perlweeklychallenge-club-b702e4cb4824a9313869b6228e19bf96c27fa09a.tar.bz2
perlweeklychallenge-club-b702e4cb4824a9313869b6228e19bf96c27fa09a.zip
- Added solutions by Eric Cheung.
- Added solutions by Simon Green. - Added solutions by PokGoPun. - Added solutions by Niels van Dijke. - Added solutions by Tymoteusz Moryto. - Added solutions by Feng Chang.
-rwxr-xr-xchallenge-284/eric-cheung/python/ch-1.py11
-rwxr-xr-xchallenge-284/eric-cheung/python/ch-2.py24
-rwxr-xr-xchallenge-284/perlboy1967/perl/ch-1.pl (renamed from challenge-284/perlboy1967/perl/ch1.pl)0
-rwxr-xr-xchallenge-284/perlboy1967/perl/ch-2.pl (renamed from challenge-284/perlboy1967/perl/ch2.pl)0
-rw-r--r--stats/pwc-challenge-283.json657
-rw-r--r--stats/pwc-current.json644
-rw-r--r--stats/pwc-language-breakdown-2019.json628
-rw-r--r--stats/pwc-language-breakdown-2020.json414
-rw-r--r--stats/pwc-language-breakdown-2021.json774
-rw-r--r--stats/pwc-language-breakdown-2022.json400
-rw-r--r--stats/pwc-language-breakdown-2023.json774
-rw-r--r--stats/pwc-language-breakdown-2024.json559
-rw-r--r--stats/pwc-language-breakdown-summary.json84
-rw-r--r--stats/pwc-leaders.json758
-rw-r--r--stats/pwc-summary-1-30.json36
-rw-r--r--stats/pwc-summary-121-150.json36
-rw-r--r--stats/pwc-summary-151-180.json94
-rw-r--r--stats/pwc-summary-181-210.json120
-rw-r--r--stats/pwc-summary-211-240.json104
-rw-r--r--stats/pwc-summary-241-270.json46
-rw-r--r--stats/pwc-summary-271-300.json50
-rw-r--r--stats/pwc-summary-301-330.json32
-rw-r--r--stats/pwc-summary-31-60.json46
-rw-r--r--stats/pwc-summary-61-90.json118
-rw-r--r--stats/pwc-summary-91-120.json48
-rw-r--r--stats/pwc-summary.json60
-rw-r--r--stats/pwc-yearly-language-summary.json136
27 files changed, 3404 insertions, 3249 deletions
diff --git a/challenge-284/eric-cheung/python/ch-1.py b/challenge-284/eric-cheung/python/ch-1.py
new file mode 100755
index 0000000000..a692fad3bf
--- /dev/null
+++ b/challenge-284/eric-cheung/python/ch-1.py
@@ -0,0 +1,11 @@
+
+## arrInts = [2, 2, 3, 4] ## Example 1
+## arrInts = [1, 2, 2, 3, 3, 3] ## Example 2
+arrInts = [1, 1, 1, 3] ## Example 3
+
+arrLucky = [nLoop for nLoop in set(arrInts) if arrInts.count(nLoop) == nLoop]
+
+if len(arrLucky) == 0:
+ print (-1)
+else:
+ print (max(arrLucky))
diff --git a/challenge-284/eric-cheung/python/ch-2.py b/challenge-284/eric-cheung/python/ch-2.py
new file mode 100755
index 0000000000..9230393f83
--- /dev/null
+++ b/challenge-284/eric-cheung/python/ch-2.py
@@ -0,0 +1,24 @@
+
+## Example 1
+## arrList_01 = [2, 3, 9, 3, 1, 4, 6, 7, 2, 8, 5]
+## arrList_02 = [2, 1, 4, 3, 5, 6]
+
+## Example 2
+## arrList_01 = [3, 3, 4, 6, 2, 4, 2, 1, 3]
+## arrList_02 = [1, 3, 2]
+
+## Example 3
+arrList_01 = [3, 0, 5, 0, 2, 1, 4, 1, 1]
+arrList_02 = [1, 0, 3, 2]
+
+arrOutput = []
+
+## Contain
+for nLoop in arrList_02:
+ arrOutput = arrOutput + [nLoop] * arrList_01.count(nLoop)
+
+## Miss
+for nLoop in [rLoop for rLoop in set(arrList_01) if rLoop not in arrList_02]:
+ arrOutput = arrOutput + [nLoop] * arrList_01.count(nLoop)
+
+print (arrOutput)
diff --git a/challenge-284/perlboy1967/perl/ch1.pl b/challenge-284/perlboy1967/perl/ch-1.pl
index d747e83e42..d747e83e42 100755
--- a/challenge-284/perlboy1967/perl/ch1.pl
+++ b/challenge-284/perlboy1967/perl/ch-1.pl
diff --git a/challenge-284/perlboy1967/perl/ch2.pl b/challenge-284/perlboy1967/perl/ch-2.pl
index 2d7eee15df..2d7eee15df 100755
--- a/challenge-284/perlboy1967/perl/ch2.pl
+++ b/challenge-284/perlboy1967/perl/ch-2.pl
diff --git a/stats/pwc-challenge-283.json b/stats/pwc-challenge-283.json
new file mode 100644
index 0000000000..83999b9db6
--- /dev/null
+++ b/stats/pwc-challenge-283.json
@@ -0,0 +1,657 @@
+{
+ "subtitle" : {
+ "text" : "[Champions: 35] Last updated at 2024-08-26 12:36:28 GMT"
+ },
+ "plotOptions" : {
+ "series" : {
+ "borderWidth" : 0,
+ "dataLabels" : {
+ "format" : "{point.y}",
+ "enabled" : 1
+ }
+ }
+ },
+ "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/>"
+ },
+ "drilldown" : {
+ "series" : [
+ {
+ "id" : "Ali Moradi",
+ "name" : "Ali Moradi",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Andrew Schneider",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Andrew Schneider"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Arne Sommer",
+ "id" : "Arne Sommer"
+ },
+ {
+ "name" : "Athanasius",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Athanasius"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ],
+ "name" : "BarrOff",
+ "id" : "BarrOff"
+ },
+ {
+ "id" : "Bob Lied",
+ "name" : "Bob Lied",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Cheok-Yin Fung",
+ "id" : "Cheok-Yin Fung"
+ },
+ {
+ "id" : "Dave Jacoby",
+ "name" : "Dave Jacoby",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "David Ferrone",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "David Ferrone"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "E. Choroba",
+ "id" : "E. Choroba"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "name" : "Feng Chang",
+ "id" : "Feng Chang"
+ },
+ {
+ "name" : "Jaldhar H. Vyas",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Jaldhar H. Vyas"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "name" : "Jan Krnavek",
+ "id" : "Jan Krnavek"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Jorg Sommrey",
+ "id" : "Jorg Sommrey"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Kjetil Skotheim",
+ "id" : "Kjetil Skotheim"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ],
+ "name" : "Laurent Rosenfeld",
+ "id" : "Laurent Rosenfeld"
+ },
+ {
+ "id" : "Mariano Ortega",
+ "name" : "Mariano Ortega",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "name" : "Mark Anderson",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Mark Anderson"
+ },
+ {
+ "name" : "Matthew Neleigh",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Matthew Neleigh"
+ },
+ {
+ "name" : "Matthias Muth",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Matthias Muth"
+ },
+ {
+ "id" : "Nelo Tovar",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Nelo Tovar"
+ },
+ {
+ "id" : "Niels van Dijke",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Niels van Dijke"
+ },
+ {
+ "id" : "Packy Anderson",
+ "name" : "Packy Anderson",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "Paulo Custodio",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Paulo Custodio"
+ },
+ {
+ "id" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "Peter Meszaros",
+ "name" : "Peter Meszaros",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Reinier Maliepaard",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Reinier Maliepaard"
+ },
+ {
+ "id" : "Robbie Hatley",
+ "name" : "Robbie Hatley",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "Robert Ransbottom",
+ "name" : "Robert Ransbottom",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Roger Bell_West",
+ "id" : "Roger Bell_West"
+ },
+ {
+ "name" : "Simon Green",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Simon Green"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ],
+ "name" : "Thomas Kohler",
+ "id" : "Thomas Kohler"
+ },
+ {
+ "name" : "Ulrich Rieke",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ],
+ "id" : "Ulrich Rieke"
+ },
+ {
+ "id" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Wanderdoc",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "id" : "Wanderdoc"
+ }
+ ]
+ },
+ "series" : [
+ {
+ "name" : "The Weekly Challenge - 283",
+ "data" : [
+ {
+ "drilldown" : "Ali Moradi",
+ "y" : 5,
+ "name" : "Ali Moradi"
+ },
+ {
+ "name" : "Andrew Schneider",
+ "y" : 2,
+ "drilldown" : "Andrew Schneider"
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Arne Sommer",
+ "name" : "Arne Sommer"
+ },
+ {
+ "name" : "Athanasius",
+ "y" : 4,
+ "drilldown" : "Athanasius"
+ },
+ {
+ "name" : "BarrOff",
+ "y" : 1,
+ "drilldown" : "BarrOff"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Bob Lied",
+ "name" : "Bob Lied"
+ },
+ {
+ "name" : "Cheok-Yin Fung",
+ "drilldown" : "Cheok-Yin Fung",
+ "y" : 2
+ },
+ {
+ "drilldown" : "Dave Jacoby",
+ "y" : 2,
+ "name" : "Dave Jacoby"
+ },
+ {
+ "name" : "David Ferrone",
+ "drilldown" : "David Ferrone",
+ "y" : 2
+ },
+ {
+ "name" : "E. Choroba",
+ "drilldown" : "E. Choroba",
+ "y" : 2
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Feng Chang",
+ "name" : "Feng Chang"
+ },
+ {
+ "drilldown" : "Jaldhar H. Vyas",
+ "y" : 5,
+ "name" : "Jaldhar H. Vyas"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Jan Krnavek",
+ "name" : "Jan Krnavek"
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Jorg Sommrey",
+ "name" : "Jorg Sommrey"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Kjetil Skotheim",
+ "name" : "Kjetil Skotheim"
+ },
+ {
+ "drilldown" : "Laurent Rosenfeld",
+ "y" : 6,
+ "name" : "Laurent Rosenfeld"
+ },
+ {
+ "name" : "Mariano Ortega",
+ "drilldown" : "Mariano Ortega",
+ "y" : 2
+ },
+ {
+ "name" : "Mark Anderson",
+ "y" : 2,
+ "drilldown" : "Mark Anderson"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Matthew Neleigh",
+ "name" : "Matthew Neleigh"
+ },
+ {
+ "name" : "Matthias Muth",
+ "y" : 3,
+ "drilldown" : "Matthias Muth"
+ },
+ {
+ "drilldown" : "Nelo Tovar",
+ "y" : 2,
+ "name" : "Nelo Tovar"
+ },
+ {
+ "name" : "Niels van Dijke",
+ "drilldown" : "Niels van Dijke",
+ "y" : 2
+ },
+ {
+ "y" : 5,
+ "drilldown" : "Packy Anderson",
+ "name" : "Packy Anderson"
+ },
+ {
+ "name" : "Paulo Custodio",
+ "y" : 2,
+ "drilldown" : "Paulo Custodio"
+ },
+ {
+ "drilldown" : "Peter Campbell Smith",
+ "y" : 3,
+ "name" : "Peter Campbell Smith"
+ },
+ {
+ "drilldown" : "Peter Meszaros",
+ "y" : 2,
+ "name" : "Peter Meszaros"
+ },
+ {
+ "name" : "Reinier Maliepaard",
+ "drilldown" : "Reinier Maliepaard",
+ "y" : 3
+ },
+ {
+ "name" : "Robbie Hatley",
+ "y" : 3,
+ "drilldown" : "Robbie Hatley"
+ },
+ {
+ "name" : "Robert Ransbottom",
+ "y" : 2,
+ "drilldown" : "Robert Ransbottom"
+ },
+ {
+ "name" : "Roger Bell_West",
+ "drilldown" : "Roger Bell_West",
+ "y" : 5
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Simon Green",
+ "name" : "Simon Green"
+ },
+ {
+ "y" : 4,
+ "drilldown" : "Thomas Kohler",
+ "name" : "Thomas Kohler"
+ },
+ {
+ "y" : 4,
+ "drilldown" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke"
+ },
+ {
+ "name" : "W. Luis Mochan",
+ "y" : 3,
+ "drilldown" : "W. Luis Mochan"
+ },
+ {
+ "name" : "Wanderdoc",
+ "drilldown" : "Wanderdoc",
+ "y" : 2
+ }
+ ],
+ "colorByPoint" : 1
+ }
+ ],
+ "legend" : {
+ "enabled" : 0
+ },
+ "title" : {
+ "text" : "The Weekly Challenge - 283"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "xAxis" : {
+ "type" : "category"
+ }
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 8186e854ec..b248e1e17c 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,638 +1,78 @@
{
- "xAxis" : {
- "type" : "category"
+ "plotOptions" : {
+ "series" : {
+ "borderWidth" : 0,
+ "dataLabels" : {
+ "format" : "{point.y}",
+ "enabled" : 1
+ }
+ }
+ },
+ "subtitle" : {
+ "text" : "[Champions: 2] Last updated at 2024-08-26 12:36:39 GMT"
+ },
+ "series" : [
+ {
+ "name" : "The Weekly Challenge - 284",
+ "data" : [
+ {
+ "y" : 2,
+ "name" : "Feng Chang",
+ "drilldown" : "Feng Chang"
+ },
+ {
+ "y" : 2,
+ "name" : "Niels van Dijke",
+ "drilldown" : "Niels van Dijke"
+ }
+ ],
+ "colorByPoint" : 1
+ }
+ ],
+ "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
},
"drilldown" : {
"series" : [
{
- "id" : "Ali Moradi",
- "name" : "Ali Moradi",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "name" : "Andrew Schneider",
- "id" : "Andrew Schneider",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "name" : "Arne Sommer",
- "id" : "Arne Sommer",
- "data" : [
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "name" : "Athanasius",
- "id" : "Athanasius",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ]
- ]
- },
- {
- "data" : [
- [
- "Raku",
- 1
- ]
- ],
- "name" : "BarrOff",
- "id" : "BarrOff"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Bob Lied",
- "name" : "Bob Lied"
- },
- {
- "name" : "Cheok-Yin Fung",
- "id" : "Cheok-Yin Fung",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Dave Jacoby",
- "name" : "Dave Jacoby"
- },
- {
- "name" : "David Ferrone",
- "id" : "David Ferrone",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "E. Choroba",
- "name" : "E. Choroba"
- },
- {
- "data" : [
- [
- "Raku",
- 2
- ]
- ],
+ "id" : "Feng Chang",
"name" : "Feng Chang",
- "id" : "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
- ]
- ],
- "name" : "Jorg Sommrey",
- "id" : "Jorg Sommrey"
- },
- {
- "id" : "Kjetil Skotheim",
- "name" : "Kjetil Skotheim",
- "data" : [
- [
- "Perl",
- 2
- ]
]
},
{
- "id" : "Laurent Rosenfeld",
- "name" : "Laurent Rosenfeld",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 2
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Mariano Ortega",
- "name" : "Mariano Ortega"
- },
- {
- "id" : "Mark Anderson",
- "name" : "Mark Anderson",
- "data" : [
- [
- "Raku",
- 2
- ]
- ]
- },
- {
- "name" : "Matthew Neleigh",
- "id" : "Matthew Neleigh",
- "data" : [
- [
- "Perl",
- 2