diff options
| author | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2024-03-11 11:24:14 +0000 |
|---|---|---|
| committer | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2024-03-11 11:24:14 +0000 |
| commit | 77245595e193396bdb9347f5b5de7a088aea8bae (patch) | |
| tree | 1e0b98bc1c373281c250c8ea8e340ab33fcca358 | |
| parent | b555f7d86b4cc0f38c935a7284549fa0feae24a7 (diff) | |
| download | perlweeklychallenge-club-77245595e193396bdb9347f5b5de7a088aea8bae.tar.gz perlweeklychallenge-club-77245595e193396bdb9347f5b5de7a088aea8bae.tar.bz2 perlweeklychallenge-club-77245595e193396bdb9347f5b5de7a088aea8bae.zip | |
- Added solutions by Eric Cheung.
- Added solutions by Mark Anderson.
- Added solutions by W. Luis Mochan.
- Added solutions by E.Choroba.
| -rwxr-xr-x | challenge-260/eric-cheung/python/ch-1.py | 10 | ||||
| -rwxr-xr-x | challenge-260/eric-cheung/python/ch-2.py | 12 | ||||
| -rw-r--r-- | stats/pwc-challenge-259.json | 555 | ||||
| -rw-r--r-- | stats/pwc-current.json | 530 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown-summary.json | 54 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown.json | 1835 | ||||
| -rw-r--r-- | stats/pwc-leaders.json | 792 | ||||
| -rw-r--r-- | stats/pwc-summary-1-30.json | 36 | ||||
| -rw-r--r-- | stats/pwc-summary-121-150.json | 38 | ||||
| -rw-r--r-- | stats/pwc-summary-151-180.json | 22 | ||||
| -rw-r--r-- | stats/pwc-summary-181-210.json | 46 | ||||
| -rw-r--r-- | stats/pwc-summary-211-240.json | 108 | ||||
| -rw-r--r-- | stats/pwc-summary-241-270.json | 104 | ||||
| -rw-r--r-- | stats/pwc-summary-271-300.json | 102 | ||||
| -rw-r--r-- | stats/pwc-summary-301-330.json | 62 | ||||
| -rw-r--r-- | stats/pwc-summary-31-60.json | 48 | ||||
| -rw-r--r-- | stats/pwc-summary-61-90.json | 102 | ||||
| -rw-r--r-- | stats/pwc-summary-91-120.json | 40 | ||||
| -rw-r--r-- | stats/pwc-summary.json | 52 |
19 files changed, 2345 insertions, 2203 deletions
diff --git a/challenge-260/eric-cheung/python/ch-1.py b/challenge-260/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..d324e8781a --- /dev/null +++ b/challenge-260/eric-cheung/python/ch-1.py @@ -0,0 +1,10 @@ +
+## arrInt = [1, 2, 2, 1, 1, 3] ## Example 1
+## arrInt = [1, 2, 3] ## Example 2
+arrInt = [-2, 0, 1, -2, 1, 1, 0, 1, -2, 9] ## Example 3
+
+arrCount = [arrInt.count(elemLoop) for elemLoop in set(arrInt)]
+
+## print (arrCount)
+
+print (1 if len(arrCount) == len(set(arrCount)) else 0)
diff --git a/challenge-260/eric-cheung/python/ch-2.py b/challenge-260/eric-cheung/python/ch-2.py new file mode 100755 index 0000000000..17f5aa4003 --- /dev/null +++ b/challenge-260/eric-cheung/python/ch-2.py @@ -0,0 +1,12 @@ +
+from itertools import permutations
+
+strWord = "CAT" ## Example 1
+## strWord = "GOOGLE" ## Example 2
+## strWord = "SECRET" ## Example 3
+
+arrPermList = permutations(list(strWord))
+
+arrPermStrList = sorted(list(set(["".join(arrLoop) for arrLoop in list(arrPermList)])))
+
+print (arrPermStrList.index(strWord) + 1)
diff --git a/stats/pwc-challenge-259.json b/stats/pwc-challenge-259.json new file mode 100644 index 0000000000..f9ae9b5bae --- /dev/null +++ b/stats/pwc-challenge-259.json @@ -0,0 +1,555 @@ +{ + "series" : [ + { + "name" : "The Weekly Challenge - 259", + "data" : [ + { + "y" : 3, + "drilldown" : "Adam Russell", + "name" : "Adam Russell" + }, + { + "y" : 3, + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer" + }, + { + "name" : "Athanasius", + "drilldown" : "Athanasius", + "y" : 3 + }, + { + "name" : "BarrOff", + "drilldown" : "BarrOff", + "y" : 1 + }, + { + "y" : 3, + "drilldown" : "Bob Lied", + "name" : "Bob Lied" + }, + { + "name" : "Bruce Gray", + "drilldown" : "Bruce Gray", + "y" : 2 + }, + { + "y" : 2, + "name" : "Cheok-Yin Fung", + "drilldown" : "Cheok-Yin Fung" + }, + { + "y" : 3, + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby" + }, + { + "name" : "David Ferrone", + "drilldown" : "David Ferrone", + "y" : 2 + }, + { + "name" : "E. Choroba", + "drilldown" : "E. Choroba", + "y" : 2 + }, + { + "drilldown" : "Feng Chang", + "name" : "Feng Chang", + "y" : 2 + }, + { + "name" : "Jan Krnavek", + "drilldown" : "Jan Krnavek", + "y" : 2 + }, + { + "drilldown" : "Jorg Sommrey", + "name" : "Jorg Sommrey", + "y" : 3 + }, + { + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch", + "y" : 4 + }, + { + "name" : "Luca Ferrari", + "drilldown" : "Luca Ferrari", + "y" : 11 + }, + { + "drilldown" : "Mariano Spadaccini", + "name" : "Mariano Spadaccini", + "y" : 1 + }, + { + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson", + "y" : 1 + }, + { + "drilldown" : "Matthew Neleigh", + "name" : "Matthew Neleigh", + "y" : 1 + }, + { + "y" : 3, + "drilldown" : "Matthias Muth", + "name" : "Matthias Muth" + }, + { + "name" : "Nelo Tovar", + "drilldown" : "Nelo Tovar", + "y" : 2 + }, + { + "y" : 5, + "name" : "Packy Anderson", + "drilldown" : "Packy Anderson" + }, + { + "y" : 3, + "drilldown" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith" + }, + { + "y" : 2, + "drilldown" : "Peter Meszaros", + "name" : "Peter Meszaros" + }, + { + "y" : 3, + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West" + }, + { + "drilldown" : "Ryan Thompson", + "name" : "Ryan Thompson", + "y" : 3 + }, + { + "name" : "Thomas Kohler", + "drilldown" : "Thomas Kohler", + "y" : 4 + }, + { + "y" : 3, + "drilldown" : "Ulrich Rieke", + "name" : "Ulrich Rieke" + }, + { + "name" : "W. Luis Mochan", + "drilldown" : "W. Luis Mochan", + "y" : 3 + }, + { + "name" : "Wanderdoc", + "drilldown" : "Wanderdoc", + "y" : 2 + } + ], + "colorByPoint" : 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/>" + }, + "chart" : { + "type" : "column" + }, + "legend" : { + "enabled" : 0 + }, + "subtitle" : { + "text" : "[Champions: 29] Last updated at 2024-03-11 11:13:14 GMT" + }, + "title" : { + "text" : "The Weekly Challenge - 259" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "drilldown" : { + "series" : [ + { + "name" : "Adam Russell", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Adam Russell" + }, + { + "name" : "Arne Sommer", + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Arne Sommer" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 1 + ] + ], + "id" : "Athanasius", + "name" : "Athanasius" + }, + { + "data" : [ + [ + "Raku", + 1 + ] + ], + "id" : "BarrOff", + "name" : "BarrOff" + }, + { + "name" : "Bob Lied", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Bob Lied" + }, + { + "name" : "Bruce Gray", + "data" : [ + [ + "Raku", + 2 + ] + ], + "id" : "Bruce Gray" + }, + { + "id" : "Cheok-Yin Fung", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Cheok-Yin Fung" + }, + { + "name" : "Dave Jacoby", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Dave Jacoby" + }, + { + "name" : "David Ferrone", + "id" : "David Ferrone", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "id" : "E. Choroba", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "E. Choroba" + }, + { + "name" : "Feng Chang", + "data" : [ + [ + "Raku", + 2 + ] + ], + "id" : "Feng Chang" + }, + { + "id" : "Jan Krnavek", + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Jan Krnavek" + }, + { + "id" : "Jorg Sommrey", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Jorg Sommrey" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch" + }, + { + "id" : "Luca Ferrari", + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 9 + ] + ], + "name" : "Luca Ferrari" + }, + { + "id" : "Mariano Spadaccini", + "data" : [ + [ + "Perl", + 1 + ] + ], + "name" : "Mariano Spadaccini" + }, + { + "data" : [ + [ + "Raku", + 1 + ] + ], + "id" : "Mark Anderson", + "name" : "Mark Anderson" + }, + { + "data" : [ + [ + "Perl", + 1 + ] + ], + "id" : "Matthew Neleigh", + "name" : "Matthew Neleigh" + }, + { + "id" : "Matthias Muth", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Matthias Muth" + }, + { + "id" : "Nelo Tovar", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Nelo Tovar" + }, + { + "name" : "Packy Anderson", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Packy Anderson" + }, + { + "id" : "Peter Campbell Smith", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Peter Campbell Smith" + }, + { + "name" : "Peter Meszaros", + "id" : "Peter Meszaros", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "data" : [ + [ + "Perl", + 1 + ], + [ + "Raku", + 1 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Roger Bell_West", + "name" : "Roger Bell_West" + }, + { + "id" : "Ryan Thompson", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Ryan Thompson" + }, + { + "name" : "Thomas Kohler", + "id" : "Thomas Kohler", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 2 + ] + ] + }, + { + "name" : "Ulrich Rieke", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 1 + ] + ], + "id" : "Ulrich Rieke" + }, + { + "id" : "W. Luis Mochan", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "W. Luis Mochan" + }, + { + "name" : "Wanderdoc", + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Wanderdoc" + } + ] + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "xAxis" : { + "type" : "category" + } +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 8e93f1b730..01740b6b1f 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,373 +1,32 @@ { - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } - }, - "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 - }, "subtitle" : { - "text" : "[Champions: 29] Last updated at 2024-03-11 02:29:21 GMT" - }, - "title" : { - "text" : "The Weekly Challenge - 259" - }, - "xAxis" : { - "type" : "category" - }, - "chart" : { - "type" : "column" + "text" : "[Champions: 3] Last updated at 2024-03-11 11:17:47 GMT" }, "drilldown" : { "series" : [ { - "id" : "Adam Russell", - "name" : "Adam Russell", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "id" : "Arne Sommer", - "name" : "Arne Sommer", - "data" : [ - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 1 - ] - ], - "name" : "Athanasius", - "id" : "Athanasius" - }, - { - "data" : [ - [ - "Raku", - 1 - ] - ], - "id" : "BarrOff", - "name" : "BarrOff" - }, - { - "id" : "Bob Lied", - "name" : "Bob Lied", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Bruce Gray", - "id" : "Bruce Gray" - }, - { "data" : [ [ "Perl", 2 ] ], - "name" : "Cheok-Yin Fung", - "id" : "Cheok-Yin Fung" - }, - { - "name" : "Dave Jacoby", - "id" : "Dave Jacoby", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ] - ], - "id" : "David Ferrone", - "name" : "David Ferrone" - }, - { - "name" : "E. Choroba", "id" : "E. Choroba", - "data" : [ - [ - "Perl", - 2 - ] - ] - }, - { - "name" : "Feng Chang", - "id" : "Feng Chang", - "data" : [ - [ - "Raku", - 2 - ] - ] - }, - { - "data" : [ - [ - "Raku", - 2 - ] - ], - "name" : "Jan Krnavek", - "id" : "Jan Krnavek" + "name" : "E. Choroba" }, { "data" : [ [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "name" : "Jorg Sommrey", - "id" : "Jorg Sommrey" - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ "Raku", 2 ] ], - "id" : "Lubos Kolouch", - "name" : "Lubos Kolouch" + "name" : "Mark Anderson", + "id" : "Mark Anderson" }, { - "data" : [ - [ - "Raku", - 2 - ], - [ - "Blog", - 9 - ] - ], - "id" : "Luca Ferrari", - "name" : "Luca Ferrari" - }, - { - "data" : [ - [ - "Perl", - 1 - ] - ], - "name" : "Mariano Spadaccini", - "id" : "Mariano Spadaccini" - }, - { - "data" : [ - [ - "Raku", - 1 - ] - ], - "id" : "Mark Anderson", - "name" : "Mark Anderson" - }, - { - "data" : [ - [ - "Perl", - 1 - ] - ], - "id" : "Matthew Neleigh", - "name" : "Matthew Neleigh" - }, - { - "name" : "Matthias Muth", - "id" : "Matthias Muth", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ] - ], - "name" : "Nelo Tovar", - "id" : "Nelo Tovar" - }, - { - "name" : "Packy Anderson", - "id" : "Packy Anderson", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "id" : "Peter Campbell Smith", - "name" : "Peter Campbell Smith", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "id" : "Peter Meszaros", - "name" : "Peter Meszaros", - "data" : [ - [ - "Perl", - 2 - ] - ] - }, - { - "name" : "Roger Bell_West", - "id" : "Roger Bell_West", - "data" : [ - [ - "Perl", - 1 - ], - [ - "Raku", - 1 - ], - [ - "Blog", - 1 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 1 - ] - ], - "id" : "Ryan Thompson", - "name" : "Ryan Thompson" - }, - { - "id" : "Thomas Kohler", - "name" : "Thomas Kohler", - "data" : [ - [ - "Perl", - 2 - ], - [ - "Blog", - 2 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 2 - ], - [ - "Raku", - 1 - ] - ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" - }, - { - "id" : "W. Luis Mochan", "name" : "W. Luis Mochan", + "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -378,19 +37,30 @@ 1 ] ] - }, - { - "id" : "Wanderdoc", - "name" : "Wanderdoc", - "data" : [ - [ - "Perl", - 2 - ] - ] } ] }, + "title" : { + "text" : "The Weekly Challenge - 260" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, + "legend" : { + "enabled" : 0 + }, + "chart" : { + "type" : "column" + }, + "xAxis" : { + "type" : "category" + }, "yAxis" : { "title" : { "text" : "Total Solutions" @@ -400,156 +70,28 @@ { "data" : [ { - "drilldown" : "Adam Russell", - "y" : 3, - "name" : "Adam Russell" - }, - { - "name" : "Arne Sommer", - "y" : 3, - "drilldown" : "Arne Sommer" - }, - { - "drilldown" : "Athanasius", - "name" : "Athanasius", - "y" : 3 - }, - { - "name" : "BarrOff", - "y" : 1, - "drilldown" : "BarrOff" - }, - { - "name" : "Bob Lied", - "y" : 3, - "drilldown" : "Bob Lied" - }, - { - "y" : 2, - "name" : "Bruce Gray", - "drilldown" : "Bruce Gray" - }, - { "y" : 2, - "name" : "Cheok-Yin Fung", - "drilldown" : "Cheok-Yin Fung" + "drilldown" : "E. Choroba", + "name" : "E. Choroba" }, { - "name" : "Dave Jacoby", - "y" : 3, - "drilldown" : "Dave Jacoby" - }, - { - "drilldown" : "David Ferrone", - "y" : 2, - "name" : "David Ferrone" - }, - { - "y" : 2, - "name" : "E. Choroba", - "drilldown" : "E. Choroba" - }, - { - "drilldown" : "Feng Chang", - "name" : "Feng Chang", - "y" : 2 - }, - { - "y" : 2, - "name" : "Jan Krnavek", - "drilldown" : "Jan Krnavek" - }, - { - "y" : 3, - "name" : "Jorg Sommrey", - "drilldown" : "Jorg Sommrey" - }, - { - "y" : 4, - "name" : "Lubos Kolouch", - "drilldo |
