From b2998ca96896e0a89935bb9b87f86ea1621e2f09 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sat, 11 May 2024 14:38:25 +0100 Subject: - Added solutions by Jan Krnavek. - Added solutions by Robbie Hatley. - Added solutions by Packy Anderson. - Added solutions by Luca Ferrari. - Added solutions by Asher Harvey-Smith. - Added solutions by Jorg Sommrey. - Added solutions by Nelo Tovar. - Added solutions by Laurent Rosenfeld. - Added solutions by Reinier Maliepaard. --- challenge-268/laurent-rosenfeld/blog.txt | 1 + challenge-268/laurent-rosenfeld/blog1.txt | 1 + challenge-268/laurent-rosenfeld/perl/ch-1.pl | 21 + challenge-268/laurent-rosenfeld/perl/ch-2.pl | 21 + challenge-268/laurent-rosenfeld/raku/ch-1.raku | 14 + challenge-268/laurent-rosenfeld/raku/ch-2.raku | 13 + challenge-268/nelo-tovar/bash/2 | 1 - challenge-268/reinier-maliepaard/blog.txt | 1 + challenge-268/reinier-maliepaard/perl/ch-1.pl | 80 + challenge-268/reinier-maliepaard/perl/ch-2.pl | 37 + stats/pwc-current.json | 484 +++--- stats/pwc-language-breakdown-summary.json | 86 +- stats/pwc-language-breakdown.json | 1954 ++++++++++++------------ stats/pwc-leaders.json | 448 +++--- stats/pwc-summary-1-30.json | 44 +- stats/pwc-summary-121-150.json | 42 +- stats/pwc-summary-151-180.json | 52 +- stats/pwc-summary-181-210.json | 54 +- stats/pwc-summary-211-240.json | 130 +- stats/pwc-summary-241-270.json | 106 +- stats/pwc-summary-271-300.json | 42 +- stats/pwc-summary-301-330.json | 74 +- stats/pwc-summary-31-60.json | 42 +- stats/pwc-summary-61-90.json | 30 +- stats/pwc-summary-91-120.json | 44 +- stats/pwc-summary.json | 1930 +++++++++++------------ 26 files changed, 3042 insertions(+), 2710 deletions(-) create mode 100644 challenge-268/laurent-rosenfeld/blog.txt create mode 100644 challenge-268/laurent-rosenfeld/blog1.txt create mode 100644 challenge-268/laurent-rosenfeld/perl/ch-1.pl create mode 100644 challenge-268/laurent-rosenfeld/perl/ch-2.pl create mode 100644 challenge-268/laurent-rosenfeld/raku/ch-1.raku create mode 100644 challenge-268/laurent-rosenfeld/raku/ch-2.raku delete mode 100644 challenge-268/nelo-tovar/bash/2 create mode 100644 challenge-268/reinier-maliepaard/blog.txt create mode 100644 challenge-268/reinier-maliepaard/perl/ch-1.pl create mode 100644 challenge-268/reinier-maliepaard/perl/ch-2.pl diff --git a/challenge-268/laurent-rosenfeld/blog.txt b/challenge-268/laurent-rosenfeld/blog.txt new file mode 100644 index 0000000000..bb5292ff01 --- /dev/null +++ b/challenge-268/laurent-rosenfeld/blog.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/05/perl-weekly-challenge-268-magic-numbers.html diff --git a/challenge-268/laurent-rosenfeld/blog1.txt b/challenge-268/laurent-rosenfeld/blog1.txt new file mode 100644 index 0000000000..3b49873d8c --- /dev/null +++ b/challenge-268/laurent-rosenfeld/blog1.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2024/05/perl-weekly-challenge-268-number-game.html diff --git a/challenge-268/laurent-rosenfeld/perl/ch-1.pl b/challenge-268/laurent-rosenfeld/perl/ch-1.pl new file mode 100644 index 0000000000..dbdf916756 --- /dev/null +++ b/challenge-268/laurent-rosenfeld/perl/ch-1.pl @@ -0,0 +1,21 @@ +use strict; +use warnings; +use feature 'say'; + +sub magic_nr { + my @in1 = sort {$a<=>$b} @{$_[0]}; + my @in2 = sort {$a<=>$b} @{$_[1]}; + my $gap = $in1[0] - $in2[0]; + for my $i (1..$#in1) { + return "undef" if $in1[$i] - $in2[$i] != $gap; + } + return abs $gap; +} + +my @tests = ([[<3 7 5>], [<9 5 7>]], [[<1 2 1>], [<5 4 4>]], + [[2,], [5]], [[<3 7 5>], [<6 5 7>]] ); + +for my $test (@tests) { + printf "%-6s - %-6s => ", "@{$test->[0]}", "@{$test->[1]}"; + say magic_nr $test->[0], $test->[1]; +} diff --git a/challenge-268/laurent-rosenfeld/perl/ch-2.pl b/challenge-268/laurent-rosenfeld/perl/ch-2.pl new file mode 100644 index 0000000000..9522930f4a --- /dev/null +++ b/challenge-268/laurent-rosenfeld/perl/ch-2.pl @@ -0,0 +1,21 @@ +use strict; +use warnings; +use feature 'say'; + +sub number_game { + my @in = sort { $a <=> $b } @_; + my @result; + while (@in) { + my $i = shift @in; + my $j = shift @in; + push @result, $j, $i; + } + + return join " ", @result; +} + +my @tests = ([<2 5 3 4>], [<1 1 4 3 6 4 9 6>], [<1 2 2 3>]); +for my $test (@tests) { + printf "%-16s => ", "@$test"; + say number_game @$test; +} diff --git a/challenge-268/laurent-rosenfeld/raku/ch-1.raku b/challenge-268/laurent-rosenfeld/raku/ch-1.raku new file mode 100644 index 0000000000..ad9c22ed51 --- /dev/null +++ b/challenge-268/laurent-rosenfeld/raku/ch-1.raku @@ -0,0 +1,14 @@ +sub magic-nr (@x, @y) { + my @in1 = @x.sort; + my @in2 = @y.sort; + my @gaps = map {@in1[$_] - @in2[$_]}, 0..@x.end; + return Nil unless [==] @gaps; + return @gaps[0].abs; +} + +my @tests = (<3 7 5>, <9 5 7>), (<1 2 1>, <5 4 4>), + ((2,), (5,)), (<3 7 5>, <6 5 7>); +for @tests -> @test { + printf "%-6s - %-6s => ", "@test[0]", "@test[1]"; + say magic-nr @test[0], @test[1]; +} diff --git a/challenge-268/laurent-rosenfeld/raku/ch-2.raku b/challenge-268/laurent-rosenfeld/raku/ch-2.raku new file mode 100644 index 0000000000..c14786c055 --- /dev/null +++ b/challenge-268/laurent-rosenfeld/raku/ch-2.raku @@ -0,0 +1,13 @@ +sub number-game (@in) { + my @result; + for @in.sort -> $i, $j { + push @result, $j, $i; + } + return @result; +} + +my @tests = <2 5 3 4>, <1 1 4 3 6 4 9 6>, <1 2 2 3>; +for @tests -> @test { + printf "%-16s => ", "@test[]"; + say number-game @test; +} diff --git a/challenge-268/nelo-tovar/bash/2 b/challenge-268/nelo-tovar/bash/2 deleted file mode 100644 index ac098b11e8..0000000000 --- a/challenge-268/nelo-tovar/bash/2 +++ /dev/null @@ -1 +0,0 @@ -i=2 diff --git a/challenge-268/reinier-maliepaard/blog.txt b/challenge-268/reinier-maliepaard/blog.txt new file mode 100644 index 0000000000..8cc2bcf2d4 --- /dev/null +++ b/challenge-268/reinier-maliepaard/blog.txt @@ -0,0 +1 @@ +https://reiniermaliepaard.nl/perl/pwc/index.php?id=pwc268 diff --git a/challenge-268/reinier-maliepaard/perl/ch-1.pl b/challenge-268/reinier-maliepaard/perl/ch-1.pl new file mode 100644 index 0000000000..b0863ccdad --- /dev/null +++ b/challenge-268/reinier-maliepaard/perl/ch-1.pl @@ -0,0 +1,80 @@ +#!/usr/bin/perl +use strict; +use warnings; + +I tried to find a solution without using the obvious 'sort'. +The solution below is not efficient, but easy to understand and it +does the job well + +sub magic_number { + + # define two arrays + my ($arr_1_ref, $arr_2_ref) = @_; + + # by dereferencing + my @arr_1 = @$arr_1_ref; + my @arr_2 = @$arr_2_ref; + + # check if arrays are of the same size + die "Arrays must be of the same size" unless @arr_1 == @arr_2; + + # more validation tests should be done...I'll leave it to you :-) + + my $magic_number; + + my %differences; + + OUTER: for my $i (0 .. $#arr_1) { + + for my $y (0 .. $#arr_2) { + + # calculate the difference between elements + of the two arrays + + my $diff = $arr_2[$y] - $arr_1[$i]; + + # if there is a magic number, then its frequency + must equal the size of @arr_1 (= length @arr_2) + + if (++$differences{$diff} == scalar(@arr_1)) { + $magic_number = $diff; + last OUTER; + } + } + } + + if (defined $magic_number) { + print "The magic number is: $magic_number\n"; + } else { + print "No magic number found\n"; + } +} + + +# TESTS + +my (@x, @y); + +# Example 1 +@x = (3, 7, 5); +@y = (9, 5, 7); +magic_number(\@x, \@y); # Output: The magic number is: 2 +magic_number(\@y, \@x); # Output: The magic number is: -2 + +# Example 2 +@x = (1, 2, 1); +@y = (5, 4, 4); +magic_number(\@x, \@y); # Output: The magic number is: 3 +magic_number(\@y, \@x); # Output: The magic number is: -3 + +# Example 3 +@x = (2); +@y = (5); +magic_number(\@x, \@y); # Output: The magic number is: 3 +magic_number(\@y, \@x); # Output: The magic number is: -3 + +# Example 4 +@x = (2, 3, 4); +@y = (5, 7, 9); +magic_number(\@x, \@y); # Output: No magic number found +magic_number(\@y, \@x); # Output: No magic number found diff --git a/challenge-268/reinier-maliepaard/perl/ch-2.pl b/challenge-268/reinier-maliepaard/perl/ch-2.pl new file mode 100644 index 0000000000..6ee2cc5f85 --- /dev/null +++ b/challenge-268/reinier-maliepaard/perl/ch-2.pl @@ -0,0 +1,37 @@ +#!/usr/bin/perl +use strict; +use warnings; + +use List::MoreUtils qw(natatime); + +sub number_game { + + my @ints = sort (@_); + my @new_arr = (); + + # https://metacpan.org/pod/List::MoreUtils -> natatime + # natatime creates an array iterator, for looping over an array in chunks of $n items at a time. + # in our case $n = 2 + my $it = (natatime 2, @ints); + while (my @vals = reverse( $it->() )) { + push(@new_arr, @vals); + } + print "(", join(", ", @new_arr), ")\n"; + +} + +# TESTS + +my @ints; + +# Example 1 +@ints = (2, 5, 3, 4); +number_game(@ints); # Output: (3, 2, 5, 4) + +# Example 2 +@ints = (9, 4, 1, 3, 6, 4, 6, 1); +number_game(@ints); # Output: (1, 1, 4, 3, 6, 4, 9, 6) + +# Example 3 +@ints = (1, 2, 2, 3); +number_game(@ints); # Output: (2, 1, 3, 2) diff --git a/stats/pwc-current.json b/stats/pwc-current.json index efca114945..73c4c06832 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,136 +1,4 @@ { - "series" : [ - { - "data" : [ - { - "y" : 3, - "name" : "Ali Moradi", - "drilldown" : "Ali Moradi" - }, - { - "drilldown" : "Andrew Shitov", - "name" : "Andrew Shitov", - "y" : 2 - }, - { - "y" : 4, - "drilldown" : "Athanasius", - "name" : "Athanasius" - }, - { - "drilldown" : "Bob Lied", - "name" : "Bob Lied", - "y" : 3 - }, - { - "y" : 2, - "name" : "Dave Jacoby", - "drilldown" : "Dave Jacoby" - }, - { - "drilldown" : "David Ferrone", - "name" : "David Ferrone", - "y" : 2 - }, - { - "y" : 2, - "drilldown" : "E. Choroba", - "name" : "E. Choroba" - }, - { - "y" : 2, - "drilldown" : "Feng Chang", - "name" : "Feng Chang" - }, - { - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson", - "y" : 2 - }, - { - "drilldown" : "Matthew Neleigh", - "name" : "Matthew Neleigh", - "y" : 2 - }, - { - "y" : 2, - "name" : "Niels van Dijke", - "drilldown" : "Niels van Dijke" - }, - { - "y" : 5, - "name" : "Packy Anderson", - "drilldown" : "Packy Anderson" - }, - { - "y" : 3, - "name" : "Peter Campbell Smith", - "drilldown" : "Peter Campbell Smith" - }, - { - "name" : "Peter Meszaros", - "drilldown" : "Peter Meszaros", - "y" : 2 - }, - { - "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West", - "y" : 4 - }, - { - "y" : 4, - "name" : "Thomas Kohler", - "drilldown" : "Thomas Kohler" - }, - { - "y" : 4, - "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke" - }, - { - "drilldown" : "W. Luis Mochan", - "name" : "W. Luis Mochan", - "y" : 3 - } - ], - "name" : "The Weekly Challenge - 268", - "colorByPoint" : 1 - } - ], - "subtitle" : { - "text" : "[Champions: 18] Last updated at 2024-05-08 08:11:16 GMT" - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } - }, - "tooltip" : { - "followPointer" : 1, - "headerFormat" : "{series.name}
", - "pointFormat" : "{point.name}: {point.y:f}
" - }, - "legend" : { - "enabled" : 0 - }, - "xAxis" : { - "type" : "category" - }, - "chart" : { - "type" : "column" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "title" : { - "text" : "The Weekly Challenge - 268" - }, "drilldown" : { "series" : [ { @@ -144,8 +12,8 @@ 1 ] ], - "id" : "Ali Moradi", - "name" : "Ali Moradi" + "name" : "Ali Moradi", + "id" : "Ali Moradi" }, { "data" : [ @@ -154,12 +22,22 @@ 2 ] ], - "id" : "Andrew Shitov", - "name" : "Andrew Shitov" + "name" : "Andrew Shitov", + "id" : "Andrew Shitov" + }, + { + "data" : [ + [ + "Raku", + 2 + ] + ], + "name" : "Asher Harvey-Smith", + "id" : "Asher Harvey-Smith" }, { - "name" : "Athanasius", "id" : "Athanasius", + "name" : "Athanasius", "data" : [ [ "Perl", @@ -172,8 +50,8 @@ ] }, { - "name" : "Bob Lied", "id" : "Bob Lied", + "name" : "Bob Lied", "data" : [ [ "Perl", @@ -186,34 +64,34 @@ ] }, { + "id" : "Dave Jacoby", + "name" : "Dave Jacoby", "data" : [ [ "Perl", 2 ] - ], - "id" : "Dave Jacoby", - "name" : "Dave Jacoby" + ] }, { + "id" : "David Ferrone", + "name" : "David Ferrone", "data" : [ [ "Perl", 2 ] - ], - "id" : "David Ferrone", - "name" : "David Ferrone" + ] }, { + "id" : "E. Choroba", + "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ], - "id" : "E. Choroba", - "name" : "E. Choroba" + ] }, { "id" : "Feng Chang", @@ -226,8 +104,8 @@ ] }, { - "name" : "Mark Anderson", - "id" : "Mark Anderson", + "name" : "Jan Krnavek", + "id" : "Jan Krnavek", "data" : [ [ "Raku", @@ -236,12 +114,58 @@ ] }, { - "name" : "Matthew Neleigh", - "id" : "Matthew Neleigh", + "id" : "Jorg Sommrey", + "name" : "Jorg Sommrey", "data" : [ [ "Perl", 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "name" : "Laurent Rosenfeld", + "id" : "Laurent Rosenfeld", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 2 + ] + ] + }, + { + "data" : [ + [ + "Raku", + 2 + ], + [ + "Blog", + 9 + ] + ], + "name" : "Luca Ferrari", + "id" : "Luca Ferrari" + }, + { + "id" : "Mark Anderson", + "name" : "Mark Anderson", + "data" : [ + [ + "Raku", + 2 ] ] }, @@ -252,12 +176,30 @@ 2 ] ], + "name" : "Matthew Neleigh", + "id" : "Matthew Neleigh" + }, + { + "id" : "Nelo Tovar", + "name" : "Nelo Tovar", + "data" : [ + [ + "Perl", + 2 + ] + ] + }, + { + "name" : "Niels van Dijke", "id" : "Niels van Dijke", - "name" : "Niels van Dijke" + "data" : [ + [ + "Perl", + 2 + ] + ] }, { - "name" : "Packy Anderson", - "id" : "Packy Anderson", "data" : [ [ "Perl", @@ -271,11 +213,13 @@ "Blog", 1 ] - ] + ], + "id" : "Packy Anderson", + "name" : "Packy Anderson" }, { - "name" : "Peter Campbell Smith", "id" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith", "data" : [ [ "Perl", @@ -294,24 +238,54 @@ 2 ] ], - "name" : "Peter Meszaros", - "id" : "Peter Meszaros" + "id" : "Peter Meszaros", + "name" : "Peter Meszaros" }, { + "id" : "Reinier Maliepaard", + "name" : "Reinier Maliepaard", "data" : [ [ "Perl", 2 ], [ - "Raku", + "Blog", + 1 + ] + ] + }, + { + "id" : "Robbie Hatley", + "name" : "Robbie Hatley", + "data" : [ + [ + "Perl", 2 + ], + [ + "Blog", + 1 ] - ], + ] + }, + { + "id" : "Roger Bell_West", "name" : "Roger Bell_West", - "id" : "Roger Bell_West" + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ] }, { + "id" : "Thomas Kohler", + "name" : "Thomas Kohler", "data" : [ [ "Perl", @@ -321,13 +295,9 @@ "Blog", 2 ] - ], - "id" : "Thomas Kohler", - "name" : "Thomas Kohler" + ] }, { - "id" : "Ulrich Rieke", - "name" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -337,9 +307,13 @@ "Raku", 2 ] - ] + ], + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke" }, { + "name" : "W. Luis Mochan", + "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -349,10 +323,180 @@ "Blog", 1 ] - ], - "id" : "W. Luis Mochan", - "name" : "W. Luis Mochan" + ] } ] + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1, + "headerFormat" : "{series.name}
" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "subtitle" : { + "text" : "[Champions: 26] Last updated at 2024-05-11 13:34:18 GMT" + }, + "xAxis" : { + "type" : "category" + }, + "chart" : { + "type" : "column" + }, + "legend" : { + "enabled" : 0 + }, + "series" : [ + { + "data" : [ + { + "drilldown" : "Ali Moradi", + "name" : "Ali Moradi", + "y" : 3 + }, + { + "y" : 2, + "name" : "Andrew Shitov", + "drilldown" : "Andrew Shitov" + }, + { + "drilldown" : "Asher Harvey-Smith", + "name" : "Asher Harvey-Smith", + "y" : 2 + }, + { + "y" : 4, + "name" : "Athanasius", + "drilldown" : "Athanasius" + }, + { + "drilldown" : "Bob Lied", + "name" : "Bob Lied", + "y" : 3 + }, + { + "y" : 2, + "name" : "Dave Jacoby", + "drilldown" : "Dave Jacoby" + }, + { + "drilldown" : "David Ferrone", + "y" : 2, + "name" : "David Ferrone" + }, + { + "drilldown" : "E. Choroba", + "name" : "E. Choroba", + "y" : 2 + }, + { + "y" : 2, + "name" : "Feng Chang", + "drilldown" : "Feng Chang" + }, + { + "y" : 2, + "name" : "Jan Krnavek", + "drilldown" : "Jan Krnavek" + }, + { + "drilldown" : "Jorg Sommrey", + "y" : 3, + "name" : "Jorg Sommrey" + }, + { + "y" : 6, + "name" : "Laurent Rosenfeld", + "drilldown" : "Laurent Rosenfeld" + }, + { + "name" : "Luca Ferrari", + "y" : 11, + "drilldown" : "Luca Ferrari" + }, + { + "drilldown" : "Mark Anderson", + "y" : 2, + "name" : "Mark Anderson" + }, + { + "name" : "Matthew Neleigh", + "y" : 2, + "drilldown" : "Matthew Neleigh" + }, + { + "drilldown" : "Nelo Tovar", + "name" : "Nelo Tovar", + "y" : 2 + }, + { + "name" : "Niels van Dijke", + "y" : 2, + "drilldown" : "Niels van Dijke" + }, + { + "y" : 5, + "name" : "Packy Anderson", + "drilldown" : "Packy Anderson" + }, + { + "drilldown" : "Peter Campbell Smith", + "y" : 3, + "name" : "Peter Campbell Smith" + }, + { + "name" : "Peter Meszaros", + "y" : 2, + "drilldown" : "Peter Meszaros" + }, + { + "drilldown" : "Reinier Maliepaard", + "y" : 3, + "name" : "Reinier Maliepaard" + }, + { + "drilldown" : "Robbie Hatley", + "name" : "Robbie Hatley", + "y" : 3 + }, + { + "y" : 4, + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West" + }, + { + "y" : 4, + "name" : "Thomas Kohler", + "drilldown" : "Thomas Kohler" + }, + { + "drilldown" : "Ulrich Rieke", + "name" : "Ulrich Rieke", + "y" : 4 + }, + { + "drilldown" : "W. Luis Mochan", + "name" : "W. Luis Mochan", + "y" : 3 + } + ], + "colorByPoint" : 1, + "name" : "The Weekly Challenge - 268" + } + ], + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } + }, + "title" : { + "text" : "The Weekly Challenge - 268" } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 5f8c72a434..11d53cbccb 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,63 +1,63 @@ { - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2024]" - }, - "xAxis" : { - "labels" : { - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - } - }, - "type" : "category" - }, - "legend" : { - "enabled" : "false" - }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 - }, "chart" : { "type" : "column" }, - "subtitle" : { - "text" : "Last updated at 2024-05-08 08:11:16 GMT" - }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" + "legend" : { + "enabled" : "false" }, "series" : [ { - "dataLabels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - }, - "color" : "#FFFFFF", - "align" : "right", - "y" : 10, - "format" : "{point.y:.0f}", - "enabled" : "true", - "rotation" : -90 - }, + "name" : "Contributions", "data" : [ [ "Blog", - 4823 + 4837 ], [ "Perl", - 13893 + 13903 ], [ "Raku", - 8051 + 8059 ] ], - "name" : "Contributions" + "dataLabels" : { + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + }, + "color" : "#FFFFFF", + "align" : "right", + "enabled" : "true", + "rotation" : -90, + "format" : "{point.y:.0f}", + "y" : 10 + } } - ] + ], + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2024]" + }, + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + }, + "subtitle" : { + "text" : "Last updated at 2024-05-11 13:34:18 GMT" + }, + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 + }, + "xAxis" : { + "labels" : { + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + } + }, + "type" : "category" + } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index d61bce96ba..a6c9f0a7ed 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,24 +1,9 @@ { - "xAxis" : { - "type" : "category" - }, - "legend" : { - "enabled" : "false" - }, - "chart" : { - "type" : "column" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "title" : { - "text" : "The Weekly Challenge Language" - }, "drilldown" : { "series" : [ { + "id" : "001", + "name" : "001", "data" : [ [ "Perl", @@ -32,11 +17,11 @@ "Blog", 12 ] - ], - "id" : "001", - "name" : "001" + ] }, { + "id" : "002", + "name" : "002", "data" : [ [ "Perl", @@ -50,13 +35,11 @@ "Blog", 10 ] - ], - "name" : "002", - "id" : "002" + ] }, { - "name" : "003", "id" : "003", + "name" : "003", "data" : [ [ "Perl", @@ -91,6 +74,8 @@ "id" : "004" }, { + "id" : "005", + "name" : "005", "data" : [ [ "Perl", @@ -104,11 +89,11 @@ "Blog", 12 ] - ], - "name" : "005", - "id" : "005" + ] }, { + "id" : "006", + "name" : "006", "data" : [ [ "Perl", @@ -122,13 +107,11 @@ "Blog", 7 ] - ], - "id" : "006", - "name" : "006" + ] }, { - "id" : "007", "name" : "007", + "id" : "007", "data" : [ [ "Perl", @@ -145,6 +128,8 @@ ] }, { + "name" : "008", + "id" : "008", "data" : [ [ "Perl", @@ -158,9 +143,7 @@ "Blog", 12 ] - ], - "name" : "008", - "id" : "008" + ] }, { "data" : [ @@ -199,6 +182,8 @@ ] }, { + "name" : "011", + "id" : "011", "data" : [ [ "Perl", @@ -212,11 +197,11 @@ "Blog", 10 ] - ], - "id" : "011", - "name" : "011" + ] }, { + "id" : "012", + "name" : "012", "data" : [ [ "Perl", @@ -230,13 +215,11 @@ "Blog", 11 ] - ], - "id" : "012", - "name" : "012" + ] }, { - "name" : "013", "id" : "013", + "name" : "013", "data" : [ [ "Perl", @@ -253,8 +236,6 @@ ] }, { - "name" : "014", - "id" : "014", "data" : [ [ "Perl", @@ -268,9 +249,13 @@ "Blog", 15 ] - ] + ], + "id" : "014", + "name" : "014" }, { + "id" : "015", + "name" : "015", "data" : [ [ "Perl", @@ -284,13 +269,9 @@ "Blog", 15 ] - ], - "id" : "015", - "name" : "015" + ] }, { - "name" : "016", - "id" : "016", "data" : [ [ "Perl", @@ -304,7 +285,9 @@ "Blog", 13 ] - ] + ], + "name" : "016", + "id" : "016" }, { "data" : [ @@ -325,8 +308,8 @@ "id" : "017" }, { - "name" : "018", "id" : "018", + "name" : "018", "data" : [ [ "Perl", @@ -343,6 +326,8 @@ ] }, { + "id" : "019", + "name" : "019", "data" : [ [ "Perl", @@ -356,13 +341,9 @@ "Blog", 13 ] - ], - "id" : "019", - "name" : "019" + ] }, { - "name" : "020", - "id" : "020", "data" : [ [ "Perl", @@ -376,9 +357,13 @@ "Blog", 13 ] - ] + ], + "id" : "020", + "name" : "020" }, { + "id" : "021", + "name" : "021", "data" : [ [ "Perl", @@ -392,11 +377,11 @@ "Blog", 10 ] - ], - "name" : "021", - "id" : "021" + ] }, { + "id" : "022", + "name" : "022", "data" : [ [ "Perl", @@ -410,13 +395,11 @@ "Blog", 10 ] - ], - "id" : "022", - "name" : "022" + ] }, { - "name" : "023", "id" : "023", + "name" : "023", "data" : [ [ "Perl", @@ -433,6 +416,8 @@ ] }, { + "name" : "024", + "id" : "024", "data" : [ [ "Perl", @@ -446,9 +431,7 @@ "Blog", 11 ] - ], - "id" : "024", - "name" : "024" + ] }, { "id" : "025", @@ -469,6 +452,8 @@ ] }, { + "name" : "026", + "id" : "026", "data" : [ [ "Perl", @@ -482,13 +467,11 @@ "Blog", 10 ] - ], - "id" : "026", - "name" : "026" + ] }, { - "name" : "027", "id" : "027", + "name" : "027", "data" : [ [ "Perl", @@ -505,6 +488,8 @@ ] }, { + "id" : "028", + "name" : "028", "data" : [ [ "Perl", @@ -518,11 +503,11 @@ "Blog", 9 ] - ], - "name" : "028", - "id" : "028" + ] }, { + "name" : "029", + "id" : "029", "data" : [ [ "Perl", @@ -536,9 +521,7 @@ "Blog", 12 ] - ], - "id" : "029", - "name" : "029" + ] }, { "data" : [ @@ -555,12 +538,12 @@ 10 ] ], - "name" : "030", - "id" : "030" + "id" : "030", + "name" : "030" }, { - "id" : "031", "name" : "031", + "id" : "031", "data" : [ [ "Perl", @@ -577,8 +560,6 @@ ] }, { - "name" : "032", - "id" : "032", "data" : [ [ "Perl", @@ -592,11 +573,11 @@ "Blog", 10 ] - ] + ], + "name" : "032", + "id" : "032" }, { - "id" : "033", - "name" : "033", "data" : [ [ "Perl", @@ -610,9 +591,13 @@ "Blog", 10 ] - ] + ], + "id" : "033", + "name" : "033" }, { + "id" : "034", + "name" : "034", "data" : [ [ "Perl", @@ -626,13 +611,9 @@ "Blog", 11 ] - ], - "name" : "034", - "id" : "034" + ] }, { - "id" : "035", - "name" : "035", "data" : [ [ "Perl", @@ -646,7 +627,9 @@ "Blog", 9 ] - ] + ], + "name" : "035", + "id" : "035" }, { "id" : "036", @@ -681,8 +664,8 @@ 9 ] ], - "id" : "037", - "name" : "037" + "name" : "037", + "id" : "037" }, { "data" : [ @@ -721,6 +704,8 @@ "name" : "039" }, { + "name" : "040", + "id" : "040", "data" : [ [ "Perl", @@ -734,9 +719,7 @@ "Blog", 10 ] - ], - "id" : "040", - "name" : "040" + ] }, { "data" : [ @@ -757,6 +740,8 @@ "id" : "041" }, { + "name" : "042", + "id" : "042", "data" : [ [ "Perl", @@ -770,13 +755,9 @@ "Blog", 11 ] - ], - "name" : "042", - "id" : "042" + ] }, { - "name" : "043", - "id" : "043", "data" : [ [ "Perl", @@ -790,11 +771,13 @@ "Blog", 11 ] - ] + ], + "id" : "043", + "name" : "043" }, { - "id" : "044", "name" : "044", + "id" : "044", "data" : [ [ "Perl", @@ -811,8 +794,8 @@ ] }, { - "id" : "045", "name" : "045", + "id" : "045", "data" : [ [ "Perl", @@ -829,6 +812,8 @@ ] }, { + "name" : "046", + "id" : "046", "data" : [ [ "Perl", @@ -842,13 +827,9 @@ "Blog", 10 ] - ], - "name" : "046", - "id" : "046" + ] }, { - "id" : "047", - "name" : "047", "data" : [ [ "Perl", @@ -862,11 +843,13 @@ "Blog", 10 ] - ] + ], + "name" : "047", + "id" : "047" }, { - "id" : "048", "name" : "048", + "id" : "048", "data" : [ [ "Perl", @@ -883,8 +866,6 @@ ] }, { - "name" : "049", - "id" : "049", "data" : [ [ "Perl", @@ -898,9 +879,13 @@ "Blog", 12 ] - ] + ], + "id" : "049", + "name" : "049" }, { + "id" : "050", + "name" : "050", "data" : [ [ "Perl", @@ -914,9 +899,7 @@ "Blog", 12 ] - ], - "id" : "050", - "name" : "050" + ] }, { "id" : "051", @@ -937,8 +920,8 @@ ] }, { - "id" : "052", "name" : "052", + "id" : "052", "data" : [ [ "Perl", @@ -969,10 +952,12 @@ 15 ] ], - "name" : "053", - "id" : "053" + "id" : "053", + "name" : "053" }, { + "id" : "054", + "name" : "054", "data" : [ [ "Perl", @@ -986,9 +971,7 @@ "Blog", 18 ] - ], - "name" : "054", - "id" : "054" + ] }, { "data" : [ @@ -1009,6 +992,8 @@ "id" : "055" }, { + "id" : "056", + "name" : "056", "data" : [ [ "Perl", @@ -1022,9 +1007,7 @@ "Blog", 17 ] - ], - "id" : "056", - "name" : "056" + ] }, { "name" : "057", @@ -1081,6 +1064,8 @@ "id" : "059" }, { + "name" : "060", + "id" : "060", "data" : [ [ "Perl", @@ -1094,9 +1079,7 @@ "Blog", 16 ] - ], - "id" : "060", - "name" : "060" + ] }, { "data" : [ @@ -1117,8 +1100,6 @@ "id" : "061" }, { - "id" : "062", - "name" : "062", "data" : [ [ "Perl", @@ -1132,9 +1113,13 @@ "Blog", 11 ] - ] + ], + "name" : "062", + "id" : "062" }, { + "name" : "063", + "id" : "063", "data" : [ [ "Perl", @@ -1148,13 +1133,11 @@ "Blog", 13 ] - ], - "id" : "063", - "name" : "063" + ] }, { - "id" : "064", "name" : "064", + "id" : "064", "data" : [ [ "Perl", @@ -1189,6 +1172,8 @@ "name" : "065" }, { + "name" : "066", + "id" : "066", "data" : [ [ "Perl", @@ -1202,9 +1187,7 @@ "Blog", 14 ] - ], - "name" : "066", - "id" : "066" + ] }, { "data" : [ @@ -1225,8 +1208,8 @@ "name" : "067" }, { - "name" : "068", "id" : "068", + "name" : "068", "data" : [ [ "Perl", @@ -1243,6 +1226,8 @@ ] }, { + "name" : "069", + "id" : "069", "data" : [ [ "Perl", @@ -1256,9 +1241,7 @@ "Blog", 16 ] - ], - "name" : "069", - "id" : "069" + ] }, { "data" : [ @@ -1279,8 +1262,6 @@ "id" : "070" }, { - "id" : "071", - "name" : "071", "data" : [ [ "Perl", @@ -1294,7 +1275,9 @@ "Blog", 15 ] - ] + ], + "name" : "071", + "id" : "071" }, { "data" : [ @@ -1329,12 +1312,10 @@ 17 ] ], - "name" : "073", - "id" : "073" + "id" : "073", + "name" : "073" }, { - "id" : "074", - "name" : "074", "data" : [ [ "Perl", @@ -1348,7 +1329,9 @@ "Blog", 20 ] - ] + ], + "name" : "074", + "id" : "074" }, { "data" : [ @@ -1365,8 +1348,8 @@ 20 ] ], - "name" : "075", - "id" : "075" + "id" : "075", + "name" : "075" }, { "data" : [ @@ -1387,8 +1370,6 @@ "name" : "076" }, { - "id" : "077", - "name" : "077", "data" : [ [ "Perl", @@ -1402,11 +1383,11 @@ "Blog", 14 ] - ] + ], + "name" : "077", + "id" : "077" }, { - "name" : "078", - "id" : "078", "data" : [ [ "Perl", @@ -1420,11 +1401,11 @@ "Blog", 18 ] - ] + ], + "id" : "078", + "name" : "078" }, { - "id" : "079", - "name" : "079", "data" : [ [ "Perl", @@ -1438,9 +1419,13 @@ "Blog", 17 ] - ] + ], + "id" : "079", + "name" : "079" }, { + "name" : "080", + "id" : "080", "data" : [ [ "Perl", @@ -1454,9 +1439,7 @@ "Blog", 16 ] - ], - "id" : "080", - "name" : "080" + ] }, { "data" : [ @@ -1473,8 +1456,8 @@ 15 ] ], - "name" : "081", - "id" : "081" + "id" : "081", + "name" : "081" }, { "id" : "082", @@ -1495,8 +1478,6 @@ ] }, { - "name" : "083", - "id" : "083", "data" : [ [ "Perl", @@ -1510,11 +1491,11 @@ "Blog", 16 ] - ] + ], + "id" : "083", + "name" : "083" }, { - "id" : "084", - "name" : "084", "data" : [ [ "Perl", @@ -1528,7 +1509,9 @@ "Blog", 12 ] - ] + ], + "id" : "084", + "name" : "084" }, { "data" : [ @@ -1549,6 +1532,8 @@ "id" : "085" }, { + "name" : "086", + "id" : "086", "data" : [ [ "Perl", @@ -1562,9 +1547,7 @@ "Blog", 15 ] - ], - "id" : "086", - "name" : "086" + ] }, { "data" : [ @@ -1617,8 +1600,8 @@ 20 ] ], - "name" : "089", - "id" : "089" + "id" : "089", + "name" : "089" }, { "data" : [ @@ -1635,8 +1618,8 @@ 17 ] ], - "id" : "090", - "name" : "090" + "name" : "090", + "id" : "090" }, { "data" : [ @@ -1653,12 +1636,10 @@ 16 ] ], - "id" : "091", - "name" : "091" + "name" : "091", + "id" : "091" }, { - "id" : "092", - "name" : "092", "data" : [ [ "Perl", @@ -1672,9 +1653,13 @@ "Blog", 16 ] - ] + ], + "name" : "092", + "id" : "092" }, { + "id" : "093", + "name" : "093", "data" : [ [ "Perl", @@ -1688,9 +1673,7 @@ "Blog", 16 ] - ], - "id" : "093", - "name" : "093" + ] }, { "data" : [ @@ -1725,10 +1708,12 @@ 19 ] ], - "name" : "095", - "id" : "095" + "id" : "095", + "name" : "095" }, { + "name" : "096", + "id" : "096", "data" : [ [ "Perl", @@ -1742,9 +1727,7 @@ "Blog", 19 ] - ], - "id" : "096", - "name" : "096" + ] }, { "name" : "097", @@ -1765,8 +1748,8 @@ ] }, { - "id" : "098", "name" : "098", + "id" : "098", "data" : [ [ "Perl", @@ -1783,8 +1766,8 @@ ] }, { - "id" : "099", "name" : "099", + "id" : "099", "data" : [ [ "Perl", @@ -1801,8 +1784,6 @@ ] }, { - "id" : "100", - "name" : "100", "data" : [ [ "Perl", @@ -1816,9 +1797,13 @@ "Blog", 21 ] - ] + ], + "name" : "100", + "id" : "100" }, { + "name" : "101", + "id" : "101", "data" : [ [ "Perl", @@ -1832,13 +1817,9 @@ "Blog", 13 ] - ], - "name" : "101", - "id" : "101" + ] }, { - "name" : "102", - "id" : "102", "data" : [ [ "Perl", @@ -1852,11 +1833,13 @@ "Blog", 15 ] - ] + ], + "id" : "102", + "name" : "102" }, { - "name" : "103", "id" : "103", + "name" : "103", "data" : [ [ "Perl", @@ -1873,6 +1856,8 @@ ] }, { + "id" : "104", + "name" : "104", "data" : [ [ "Perl", @@ -1886,9 +1871,7 @@ "Blog", 14 ] - ], - "name" : "104", - "id" : "104" + ] }, { "data" : [ @@ -1905,8 +1888,8 @@ 14 ] ], - "name" : "105", - "id" : "105" + "id" : "105", + "name" : "105" }, { "id" : "106", @@ -1927,8 +1910,6 @@ ] }, { - "id" : "107", - "name" : "107", "data" : [ [ "Perl", @@ -1942,9 +1923,13 @@ "Blog", 19 ] - ] + ], + "name" : "107", + "id" : "107" }, { + "name" : "108", + "id" : "108", "data" : [ [ "Perl", @@ -1958,11 +1943,11 @@ "Blog", 20 ] - ], - "name" : "108", - "id" : "108" + ] }, { + "id" : "109", + "name" : "109", "data" : [ [ "Perl", @@ -1976,11 +1961,11 @@ "Blog", 22 ] - ], - "name" : "109", - "id" : "109" + ] }, { + "id" : "110", + "name" : "110", "data" : [ [ "Perl", @@ -1994,11 +1979,11 @@ "Blog", 25 ] - ], - "id" : "110", - "name" : "110" + ] }, { + "id" : "111", + "name" : "111", "data" : [ [ "Perl", @@ -2012,11 +1997,11 @@ "Blog", 17 ] - ], - "id" : "111", - "name" : "111" + ] }, { + "name" : "112", + "id" : "112", "data" : [ [ "Perl", @@ -2030,11 +2015,11 @@ "Blog", 19 ] - ], - "id" : "112", - "name" : "112" + ] }, { + "name" : "113", + "id" : "113", "data" : [ [ "Perl", @@ -2048,13 +2033,9 @@ "Blog", 19 ] - ], - "name" : "113", - "id" : "113" + ] }, { - "id" : "114", - "name" : "114", "data" : [ [ "Perl", @@ -2068,11 +2049,13 @@ "Blog", 21 ] - ] + ], + "id" : "114", + "name" : "114" }, { - "id" : "115", "name" : "115", + "id" : "115", "data" : [ [ "Perl", @@ -2125,8 +2108,6 @@ ] }, { - "id" : "118", - "name" : "118", "data" : [ [ "Perl", @@ -2140,11 +2121,11 @@ "Blog", 17 ] - ] + ], + "name" : "118", + "id" : "118" }, { - "id" : "119", - "name" : "119", "data" : [ [ "Perl", @@ -2158,9 +2139,13 @@ "Blog", 21 ] - ] + ], + "id" : "119", + "name" : "119" }, { + "name" : "120", + "id" : "120", "data" : [ [ "Perl", @@ -2174,13 +2159,9 @@ "Blog", 21 ] - ], - "id" : "120", - "name" : "120" + ] }, { - "name" : "121", - "id" : "121", "data" : [ [ "Perl", @@ -2194,9 +2175,13 @@ "Blog", 17 ] - ] + ], + "name" : "121", + "id" : "121" }, { + "id" : "122", + "name" : "122", "data" : [ [ "Perl", @@ -2210,11 +2195,11 @@ "Blog", 20 ] - ], - "id" : "122", - "name" : "122" + ] }, { + "name" : "123", + "id" : "123", "data" : [ [ "Perl", @@ -2228,9 +2213,7 @@ "Blog", 18 ] - ], - "id" : "123", - "name" : "123" + ] }, { "data" : [ @@ -2247,8 +2230,8 @@ 16 ] ], - "name" : "124", - "id" : "124" + "id" : "124", + "name" : "124" }, { "data" : [ @@ -2265,10 +2248,12 @@ 11 ] ], - "name" : "125", - "id" : "125" + "id" : "125", + "name" : "125" }, { + "name" : "126", + "id" : "126", "data" : [ [ "Perl", @@ -2282,13 +2267,9 @@ "Blog", 19 ] - ], - "id" : "126", - "name" : "126" + ] }, { - "id" : "127", - "name" : "127", "data" : [ [ "Perl", @@ -2302,9 +2283,13 @@ "Blog", 19 ] - ] + ], + "id" : "127", + "name" : "127" }, { + "name" : "128", + "id" : "128", "data" : [ [ "Perl", @@ -2318,9 +2303,7 @@ "Blog", 15 ] - ], - "id" : "128", - "name" : "128" + ] }, { "data" : [ @@ -2337,12 +2320,10 @@ 14 ] ], - "name" : "129", - "id" : "129" + "id" : "129", + "name" : "129" }, { - "id" : "130", - "name" : "130", "data" : [ [ "Perl", @@ -2356,11 +2337,11 @@ "Blog", 13 ] - ] + ], + "name" : "130", + "id" : "130" }, { - "id" : "131", - "name" : "131", "data" : [ [ "Perl", @@ -2374,11 +2355,11 @@ "Blog", 17 ] - ] + ], + "name" : "131", + "id" : "131" }, { - "name" : "132", - "id" : "132", "data" : [ [ "Perl", @@ -2392,9 +2373,13 @@ "Blog", 13 ] - ] + ], + "name" : "132", + "id" : "132" }, { + "id" : "133", + "name" : "133", "data" : [ [ "Perl", @@ -2408,11 +2393,11 @@ "Blog", 18 ] - ], - "id" : "133", - "name" : "133" + ] }, { + "name" : "134", + "id" : "134", "data" : [ [ "Perl", @@ -2426,13 +2411,9 @@ "Blog", 15 ] - ], - "name" : "134", - "id" : "134" + ] }, { - "name" : "135", - "id" : "135", "data" : [ [ "Perl", @@ -2446,11 +2427,11 @@ "Blog", 17 ] - ] + ], + "id" : "135", + "name" : "135" }, { - "id" : "136", - "name" : "136", "data" : [ [ "Perl", @@ -2464,7 +2445,9 @@ "Blog", 19 ] - ] + ], + "id" : "136", + "name" : "136" }, { "data" : [ @@ -2485,8 +2468,8 @@ "name" : "137" }, { - "name" : "138", "id" : "138", + "name" : "138", "data" : [ [ "Perl", @@ -2503,6 +2486,8 @@ ] }, { + "id" : "139", + "name" : "139", "data" : [ [ "Perl", @@ -2516,13 +2501,11 @@ "Blog", 19 ] - ], - "id" : "139", - "name" : "139" + ] }, { - "id" : "140", "name" : "140", + "id" : "140", "data" : [ [ "Perl", @@ -2553,8 +2536,8 @@ 20 ] ], - "name" : "141", - "id" : "141" + "id" : "141", + "name" : "141" }, { "data" : [ @@ -2571,10 +2554,12 @@ 18 ] ], - "id" : "142", - "name" : "142" + "name" : "142", + "id" : "142" }, { + "name" : "143", + "id" : "143", "data" : [ [ "Perl", @@ -2588,11 +2573,11 @@ "Blog", 18 ] - ], - "id" : "143", - "name" : "143" + ] }, { + "id" : "144", + "name" : "144", "data" : [ [ "Perl", @@ -2606,9 +2591,7 @@ "Blog", 17 ] - ], - "name" : "144", - "id" : "144" + ] }, { "name" : "145", @@ -2647,8 +2630,8 @@ ] }, { - "id" : "147", "name" : "147", + "id" : "147", "data" : [ [ "Perl", @@ -2679,10 +2662,12 @@ 21 ] ], - "name" : "148", - "id" : "148" + "id" : "148", + "name" : "148" }, { + "id" : "149", + "name" : "149", "data" : [ [ "Perl", @@ -2696,13 +2681,9 @@ "Blog", 19 ] - ], - "name" : "149", - "id" : "149" + ] }, { - "name" : "150", - "id" : "150", "data" : [ [ "Perl", @@ -2716,11 +2697,11 @@ "Blog", 21 ] - ] + ], + "name" : "150", + "id" : "150" }, { - "name" : "151", - "id" : "151", "data"