diff options
| -rwxr-xr-x | challenge-212/eric-cheung/python/ch-1.py | 22 | ||||
| -rwxr-xr-x | challenge-212/eric-cheung/python/ch-2.py | 23 | ||||
| -rw-r--r-- | stats/pwc-challenge-211.json | 267 | ||||
| -rw-r--r-- | stats/pwc-current.json | 154 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown-summary.json | 44 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown.json | 2988 | ||||
| -rw-r--r-- | stats/pwc-leaders.json | 778 | ||||
| -rw-r--r-- | stats/pwc-summary-1-30.json | 98 | ||||
| -rw-r--r-- | stats/pwc-summary-121-150.json | 46 | ||||
| -rw-r--r-- | stats/pwc-summary-151-180.json | 100 | ||||
| -rw-r--r-- | stats/pwc-summary-181-210.json | 32 | ||||
| -rw-r--r-- | stats/pwc-summary-211-240.json | 90 | ||||
| -rw-r--r-- | stats/pwc-summary-241-270.json | 44 | ||||
| -rw-r--r-- | stats/pwc-summary-271-300.json | 80 | ||||
| -rw-r--r-- | stats/pwc-summary-31-60.json | 48 | ||||
| -rw-r--r-- | stats/pwc-summary-61-90.json | 100 | ||||
| -rw-r--r-- | stats/pwc-summary-91-120.json | 92 | ||||
| -rw-r--r-- | stats/pwc-summary.json | 54 |
18 files changed, 2594 insertions, 2466 deletions
diff --git a/challenge-212/eric-cheung/python/ch-1.py b/challenge-212/eric-cheung/python/ch-1.py new file mode 100755 index 0000000000..f7a2780aed --- /dev/null +++ b/challenge-212/eric-cheung/python/ch-1.py @@ -0,0 +1,22 @@ +
+## Example 1
+## strWordInput = "Perl"
+## arrJumpStep = [2, 22, 19, 9]
+
+## Example 2
+strWordInput = "Raku"
+arrJumpStep = [24, 4, 7, 17]
+
+arrOuputChar = []
+
+for nIndx, charLoop in enumerate(strWordInput):
+
+ bIsUpper = charLoop.isupper()
+ nJumpChar = ord(charLoop) + arrJumpStep[nIndx]
+
+ if nJumpChar > ord("Z" if bIsUpper else "z"):
+ nJumpChar = nJumpChar % ord("Z" if bIsUpper else "z") + ord("A" if bIsUpper else "a") - 1
+
+ arrOuputChar.append(chr(nJumpChar))
+
+print ("".join(arrOuputChar))
diff --git a/challenge-212/eric-cheung/python/ch-2.py b/challenge-212/eric-cheung/python/ch-2.py new file mode 100755 index 0000000000..8514d9b415 --- /dev/null +++ b/challenge-212/eric-cheung/python/ch-2.py @@ -0,0 +1,23 @@ +
+## Example 1:
+## arrList = [1, 2, 3, 5, 1, 2, 7, 6, 3]
+## nSizeSplit = 3
+
+## Example 2:
+## arrList = [1, 2, 3]
+## nSizeSplit = 2
+
+## Example 3:
+## arrList = [1, 2, 4, 3, 5, 3]
+## nSizeSplit = 3
+
+## Example 4:
+arrList = [1, 5, 2, 6, 4, 7]
+nSizeSplit = 3
+
+if len(arrList) % nSizeSplit == 0:
+ arrList.sort()
+ for nIndx in range(0, len(arrList), nSizeSplit):
+ print (arrList[nIndx:nIndx + nSizeSplit])
+else:
+ print (-1)
diff --git a/stats/pwc-challenge-211.json b/stats/pwc-challenge-211.json index 877fed214e..08b50e7575 100644 --- a/stats/pwc-challenge-211.json +++ b/stats/pwc-challenge-211.json @@ -1,28 +1,17 @@ { - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } - }, - "legend" : { - "enabled" : 0 + "xAxis" : { + "type" : "category" }, "title" : { "text" : "The Weekly Challenge - 211" }, - "tooltip" : { - "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>", - "followPointer" : 1, - "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>" + "subtitle" : { + "text" : "[Champions: 36] Last updated at 2023-04-11 08:44:10 GMT" }, "drilldown" : { "series" : [ { - "id" : "Arne Sommer", + "name" : "Arne Sommer", "data" : [ [ "Raku", @@ -33,7 +22,7 @@ 1 ] ], - "name" : "Arne Sommer" + "id" : "Arne Sommer" }, { "data" : [ @@ -64,18 +53,16 @@ "id" : "Avery Adams" }, { + "name" : "BarrOff", "data" : [ [ "Raku", 2 ] ], - "name" : "BarrOff", "id" : "BarrOff" }, { - "id" : "Bob Lied", - "name" : "Bob Lied", "data" : [ [ "Perl", @@ -85,47 +72,49 @@ "Blog", 1 ] - ] + ], + "name" : "Bob Lied", + "id" : "Bob Lied" }, { - "id" : "Bruce Gray", "data" : [ [ "Raku", 2 ] ], - "name" : "Bruce Gray" + "name" : "Bruce Gray", + "id" : "Bruce Gray" }, { "id" : "Carlos Oliveira", + "name" : "Carlos Oliveira", "data" : [ [ "Perl", 2 ] - ], - "name" : "Carlos Oliveira" + ] }, { - "name" : "Cheok-Yin Fung", "data" : [ [ "Perl", 2 ] ], + "name" : "Cheok-Yin Fung", "id" : "Cheok-Yin Fung" }, { - "id" : "David Ferrone", + "name" : "David Ferrone", "data" : [ [ "Perl", 2 ] ], - "name" : "David Ferrone" + "id" : "David Ferrone" }, { "data" : [ @@ -138,7 +127,6 @@ "id" : "E. Choroba" }, { - "id" : "Flavio Poletti", "data" : [ [ "Perl", @@ -153,7 +141,8 @@ 2 ] ], - "name" : "Flavio Poletti" + "name" : "Flavio Poletti", + "id" : "Flavio Poletti" }, { "name" : "Jaldhar H. Vyas", @@ -208,7 +197,7 @@ "name" : "Jorg Sommrey" }, { - "name" : "Laurent Rosenfeld", + "id" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -223,7 +212,7 @@ 1 ] ], - "id" : "Laurent Rosenfeld" + "name" : "Laurent Rosenfeld" }, { "name" : "Leo Manfredi", @@ -236,6 +225,18 @@ "id" : "Leo Manfredi" }, { + "id" : "Lubos Kolouch", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Lubos Kolouch" + }, + { + "id" : "Luca Ferrari", + "name" : "Luca Ferrari", "data" : [ [ "Raku", @@ -245,49 +246,47 @@ "Blog", 6 ] - ], - "name" : "Luca Ferrari", - "id" : "Luca Ferrari" + ] }, { + "id" : "Mariano Spadaccini", + "name" : "Mariano Spadaccini", "data" : [ [ "Perl", 1 ] - ], - "name" : "Mariano Spadaccini", - "id" : "Mariano Spadaccini" + ] }, { + "name" : "Mark Anderson", "data" : [ [ "Raku", 2 ] ], - "name" : "Mark Anderson", "id" : "Mark Anderson" }, { "id" : "Matthew Neleigh", + "name" : "Matthew Neleigh", "data" : [ [ "Perl", 1 ] - ], - "name" : "Matthew Neleigh" + ] }, { + "id" : "Matthias Muth", "name" : "Matthias Muth", "data" : [ [ "Perl", 2 ] - ], - "id" : "Matthias Muth" + ] }, { "name" : "Paulo Custodio", @@ -300,7 +299,6 @@ "id" : "Paulo Custodio" }, { - "id" : "Peter Campbell Smith", "name" : "Peter Campbell Smith", "data" : [ [ @@ -311,19 +309,21 @@ "Blog", 1 ] - ] + ], + "id" : "Peter Campbell Smith" }, { - "name" : "Peter Meszaros", "data" : [ [ "Perl", 2 ] ], + "name" : "Peter Meszaros", "id" : "Peter Meszaros" }, { + "id" : "Pip Stuart", "data" : [ [ "Perl", @@ -334,8 +334,7 @@ 2 ] ], - "name" : "Pip Stuart", - "id" : "Pip Stuart" + "name" : "Pip Stuart" }, { "data" : [ @@ -352,6 +351,8 @@ "id" : "Robbie Hatley" }, { + "id" : "Robert DiCicco", + "name" : "Robert DiCicco", "data" : [ [ "Perl", @@ -361,9 +362,7 @@ "Raku", 2 ] - ], - "name" : "Robert DiCicco", - "id" : "Robert DiCicco" + ] }, { "id" : "Robert Ransbottom", @@ -376,7 +375,7 @@ "name" : "Robert Ransbottom" }, { - "id" : "Roger Bell_West", + "name" : "Roger Bell_West", "data" : [ [ "Perl", @@ -391,7 +390,7 @@ 1 ] ], - "name" : "Roger Bell_West" + "id" : "Roger Bell_West" }, { "id" : "Simon Green", @@ -419,7 +418,6 @@ }, { "id" : "Thomas Kohler", - "name" : "Thomas Kohler", "data" : [ [ "Perl", @@ -429,9 +427,11 @@ "Blog", 2 ] - ] + ], + "name" : "Thomas Kohler" }, { + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -442,11 +442,11 @@ 1 ] ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" + "name" : "Ulrich Rieke" }, { "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -456,108 +456,124 @@ "Blog", 1 ] - ], - "name" : "W. Luis Mochan" + ] } ] }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" + "legend" : { + "enabled" : 0 + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } } }, + "tooltip" : { + "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>", + "followPointer" : 1, + "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>" + }, "series" : [ { "data" : [ { "y" : 3, - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer" + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer" }, { - "drilldown" : "Athanasius", "y" : 4, - "name" : "Athanasius" + "name" : "Athanasius", + "drilldown" : "Athanasius" }, { + "drilldown" : "Avery Adams", "name" : "Avery Adams", - "y" : 3, - "drilldown" : "Avery Adams" + "y" : 3 }, { "y" : 2, - "name" : "BarrOff", - "drilldown" : "BarrOff" + "drilldown" : "BarrOff", + "name" : "BarrOff" }, { "name" : "Bob Lied", - "y" : 3, - "drilldown" : "Bob Lied" + "drilldown" : "Bob Lied", + "y" : 3 }, { + "y" : 2, "drilldown" : "Bruce Gray", - "name" : "Bruce Gray", - "y" : 2 + "name" : "Bruce Gray" }, { - "drilldown" : "Carlos Oliveira", "y" : 2, - "name" : "Carlos Oliveira" + "name" : "Carlos Oliveira", + "drilldown" : "Carlos Oliveira" }, { - "drilldown" : "Cheok-Yin Fung", + "y" : 2, "name" : "Cheok-Yin Fung", - "y" : 2 + "drilldown" : "Cheok-Yin Fung" }, { - "drilldown" : "David Ferrone", + "y" : 2, "name" : "David Ferrone", - "y" : 2 + "drilldown" : "David Ferrone" }, { - "drilldown" : "E. Choroba", + "y" : 2, "name" : "E. Choroba", - "y" : 2 + "drilldown" : "E. Choroba" }, { - "drilldown" : "Flavio Poletti", "y" : 6, - "name" : "Flavio Poletti" + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti" }, { + "y" : 5, "drilldown" : "Jaldhar H. Vyas", - "name" : "Jaldhar H. Vyas", - "y" : 5 + "name" : "Jaldhar H. Vyas" }, { - "drilldown" : "James Smith", + "y" : 3, "name" : "James Smith", - "y" : 3 + "drilldown" : "James Smith" }, { "y" : 2, - "name" : "Jan Krnavek", - "drilldown" : "Jan Krnavek" + "drilldown" : "Jan Krnavek", + "name" : "Jan Krnavek" }, { - "drilldown" : "Jorg Sommrey", "y" : 2, + "drilldown" : "Jorg Sommrey", "name" : "Jorg Sommrey" }, { + "name" : "Laurent Rosenfeld", "drilldown" : "Laurent Rosenfeld", - "y" : 5, - "name" : "Laurent Rosenfeld" + "y" : 5 }, { "name" : "Leo Manfredi", - "y" : 1, - "drilldown" : "Leo Manfredi" + "drilldown" : "Leo Manfredi", + "y" : 1 + }, + { + "y" : 2, + "drilldown" : "Lubos Kolouch", + "name" : "Lubos Kolouch" }, { - "drilldown" : "Luca Ferrari", + "y" : 8, "name" : "Luca Ferrari", - "y" : 8 + "drilldown" : "Luca Ferrari" }, { "drilldown" : "Mariano Spadaccini", @@ -565,58 +581,58 @@ "y" : 1 }, { - "drilldown" : "Mark Anderson", + "y" : 2, "name" : "Mark Anderson", - "y" : 2 + "drilldown" : "Mark Anderson" }, { - "y" : 1, + "drilldown" : "Matthew Neleigh", "name" : "Matthew Neleigh", - "drilldown" : "Matthew Neleigh" + "y" : 1 }, { - "name" : "Matthias Muth", "y" : 2, + "name" : "Matthias Muth", "drilldown" : "Matthias Muth" }, { "name" : "Paulo Custodio", - "y" : 2, - "drilldown" : "Paulo Custodio" + "drilldown" : "Paulo Custodio", + "y" : 2 }, { "y" : 3, - "name" : "Peter Campbell Smith", - "drilldown" : "Peter Campbell Smith" + "drilldown" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith" }, { - "y" : 2, "name" : "Peter Meszaros", - "drilldown" : "Peter Meszaros" + "drilldown" : "Peter Meszaros", + "y" : 2 }, { - "y" : 4, + "drilldown" : "Pip Stuart", "name" : "Pip Stuart", - "drilldown" : "Pip Stuart" + "y" : 4 }, { - "drilldown" : "Robbie Hatley", "name" : "Robbie Hatley", + "drilldown" : "Robbie Hatley", "y" : 3 }, { "y" : 4, - "name" : "Robert DiCicco", - "drilldown" : "Robert DiCicco" + "drilldown" : "Robert DiCicco", + "name" : "Robert DiCicco" }, { "y" : 2, - "name" : "Robert Ransbottom", - "drilldown" : "Robert Ransbottom" + "drilldown" : "Robert Ransbottom", + "name" : "Robert Ransbottom" }, { - "drilldown" : "Roger Bell_West", "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West", "y" : 5 }, { @@ -625,9 +641,9 @@ "drilldown" : "Simon Green" }, { + "drilldown" : "Solathian", "name" : "Solathian", - "y" : 2, - "drilldown" : "Solathian" + "y" : 2 }, { "y" : 4, @@ -640,22 +656,21 @@ "y" : 3 }, { - "name" : "W. Luis Mochan", "y" : 3, - "drilldown" : "W. Luis Mochan" + "drilldown" : "W. Luis Mochan", + "name" : "W. Luis Mochan" } ], "name" : "The Weekly Challenge - 211", "colorByPoint" : 1 } ], + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, "chart" : { "type" : "column" - }, - "xAxis" : { - "type" : "category" - }, - "subtitle" : { - "text" : "[Champions: 35] Last updated at 2023-04-10 21:19:19 GMT" } } diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 13a830725b..5ff1bda82e 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,30 +1,30 @@ { "subtitle" : { - "text" : "[Champions: 5] Last updated at 2023-04-10 21:58:08 GMT" - }, - "tooltip" : { - "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/>", - "followPointer" : 1 - }, - "chart" : { - "type" : "column" - }, - "legend" : { - "enabled" : 0 + "text" : "[Champions: 9] Last updated at 2023-04-11 10:03:23 GMT" }, "series" : [ { + "colorByPoint" : 1, "data" : [ { - "drilldown" : "E. Choroba", "y" : 2, + "drilldown" : "E. Choroba", "name" : "E. Choroba" }, { - "name" : "Laurent Rosenfeld", "drilldown" : "Laurent Rosenfeld", - "y" : 3 + "y" : 3, + "name" : "Laurent Rosenfeld" + }, + { + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch", + "y" : 2 + }, + { + "y" : 8, + "drilldown" : "Luca Ferrari", + "name" : "Luca Ferrari" }, { "drilldown" : "Mark Anderson", @@ -32,37 +32,29 @@ "name" : "Mark Anderson" }, { - "drilldown" : "Paulo Custodio", + "name" : "Paulo Custodio", "y" : 2, - "name" : "Paulo Custodio" + "drilldown" : "Paulo Custodio" }, { + "drilldown" : "Peter Meszaros", "y" : 2, + "name" : "Peter Meszaros" + }, + { "drilldown" : "Robert DiCicco", + "y" : 2, "name" : "Robert DiCicco" + }, + { + "name" : "W. Luis Mochan", + "drilldown" : "W. Luis Mochan", + "y" : 3 } ], - "name" : "The Weekly Challenge - 212", - "colorByPoint" : 1 + "name" : "The Weekly Challenge - 212" } ], - "title" : { - "text" : "The Weekly Challenge - 212" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 - } - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, "drilldown" : { "series" : [ { @@ -72,8 +64,8 @@ 2 ] ], - "id" : "E. Choroba", - "name" : "E. Choroba" + "name" : "E. Choroba", + "id" : "E. Choroba" }, { "name" : "Laurent Rosenfeld", @@ -94,14 +86,38 @@ ] }, { - "name" : "Mark Anderson", - "id" : "Mark Anderson", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Lubos Kolouch", + "id" : "Lubos Kolouch" + }, + { "data" : [ [ "Raku", 2 + ], + [ + "Blog", + 6 ] - ] + ], + "id" : "Luca Ferrari", + "name" : "Luca Ferrari" + }, + { + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Mark Anderson", + "id" : "Mark Anderson" }, { "id" : "Paulo Custodio", @@ -117,6 +133,16 @@ "data" : [ [ "Perl", + 2 + ] + ], + "id" : "Peter Meszaros", + "name" : "Peter Meszaros" + }, + { + "data" : [ + [ + "Perl", 1 ], [ @@ -124,11 +150,53 @@ 1 ] ], - "name" : "Robert DiCicco", - "id" : "Robert DiCicco" + "id" : "Robert DiCicco", + "name" : "Robert DiCicco" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "W. Luis Mochan", + "id" : "W. Luis Mochan" } ] }, + "chart" : { + "type" : "column" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "legend" : { + "enabled" : 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 + }, + "title" : { + "text" : "The Weekly Challenge - 212" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, "xAxis" : { "type" : "category" } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 4b7cf113c2..23caf12576 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,49 +1,46 @@ { - "chart" : { - "type" : "column" - }, - "legend" : { - "enabled" : "false" - }, "subtitle" : { - "text" : "Last updated at 2023-04-10 21:58:08 GMT" - }, - "tooltip" : { - "pointFormat" : "<b>{point.y:.0f}</b>" + "text" : "Last updated at 2023-04-11 10:03:23 GMT" }, "series" : [ { "data" : [ [ "Blog", - 3468 + 3475 ], [ "Perl", - 10692 + 10700 ], [ "Raku", - 6256 + 6258 ] ], + "name" : "Contributions", "dataLabels" : { + "enabled" : "true", "y" : 10, "style" : { "fontFamily" : "Verdana, sans-serif", "fontSize" : "13px" }, - "align" : "right", "rotation" : -90, - "format" : "{point.y:.0f}", "color" : "#FFFFFF", - "enabled" : "true" - }, - "name" : "Contributions" + "format" : "{point.y:.0f}", + "align" : "right" + } } ], - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2023]" + "chart" : { + "type" : "column" + }, + "tooltip" : { + "pointFormat" : "<b>{point.y:.0f}</b>" + }, + "legend" : { + "enabled" : "false" }, "yAxis" : { "min" : 0, @@ -51,13 +48,16 @@ "text" : null } }, + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2023]" + }, "xAxis" : { + "type" : "category", "labels" : { "style" : { "fontSize" : "13px", "fontFamily" : "Verdana, sans-serif" } - }, - "type" : "category" + } } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 728086bc42..47d86bb2fe 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,9 +1,4 @@ { - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, "plotOptions" : { "series" : { "dataLabels" : { @@ -13,1082 +8,14 @@ "borderWidth" : 0 } }, - "title" : { - "text" : "The Weekly Challenge Language" + "chart" : { + "type" : "column" }, - "series" : [ - { - "name" : "The Weekly Challenge Languages", - "colorByPoint" : "true", - "data" : [ - { - "drilldown" : "001", - "y" : 163, - "name" : "#001" - }, - { - "name" : "#002", - "drilldown" : "002", - "y" : 129 - }, - { - "drilldown" : "003", - "name" : "#003", - "y" : 87 - }, - { - "drilldown" : "004", - "y" : 103, - "name" : "#004" - }, - { - "drilldown" : "005", - "name" : "#005", - "y" : 80 - }, - { - "drilldown" : "006", - "y" : 61, - "name" : "#006" - }, - { - "drilldown" : "007", - "y" : 69, - "name" : "#007" - }, - { - "y" : 82, - "drilldown" : "008", - "name" : "#008" - }, - { - "drilldown" |
