From e718cae482ded10d118e5598d0ed77ace632f8cc Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 8 Jun 2020 12:53:18 +0100 Subject: - Added solutions by Javier Luque. --- challenge-064/javier-luque/blog.txt | 1 + challenge-064/javier-luque/perl/ch-1.pl | 53 +++ challenge-064/javier-luque/perl/ch-2.pl | 28 ++ challenge-064/javier-luque/raku/ch-1.p6 | 49 +++ challenge-064/javier-luque/raku/ch-2.p6 | 21 + stats/pwc-current.json | 95 ++-- stats/pwc-language-breakdown-summary.json | 62 +-- stats/pwc-language-breakdown.json | 476 ++++++++++---------- stats/pwc-leaders.json | 706 +++++++++++++++--------------- stats/pwc-summary-1-30.json | 40 +- stats/pwc-summary-121-150.json | 102 ++--- stats/pwc-summary-151-180.json | 56 +-- stats/pwc-summary-31-60.json | 48 +- stats/pwc-summary-61-90.json | 128 +++--- stats/pwc-summary-91-120.json | 50 +-- stats/pwc-summary.json | 382 ++++++++-------- 16 files changed, 1236 insertions(+), 1061 deletions(-) create mode 100644 challenge-064/javier-luque/blog.txt create mode 100644 challenge-064/javier-luque/perl/ch-1.pl create mode 100644 challenge-064/javier-luque/perl/ch-2.pl create mode 100644 challenge-064/javier-luque/raku/ch-1.p6 create mode 100644 challenge-064/javier-luque/raku/ch-2.p6 diff --git a/challenge-064/javier-luque/blog.txt b/challenge-064/javier-luque/blog.txt new file mode 100644 index 0000000000..8b3410c4a1 --- /dev/null +++ b/challenge-064/javier-luque/blog.txt @@ -0,0 +1 @@ +https://perlchallenges.wordpress.com/2020/06/08/perl-weekly-challenge-064/ diff --git a/challenge-064/javier-luque/perl/ch-1.pl b/challenge-064/javier-luque/perl/ch-1.pl new file mode 100644 index 0000000000..f521064b97 --- /dev/null +++ b/challenge-064/javier-luque/perl/ch-1.pl @@ -0,0 +1,53 @@ +#!/usr/bin/perl +# Test: ./ch-1.pl +use strict; +use warnings; +use feature qw /say/; + +my @path; +my $matrix = [ + [ 1, 2, 3 ], + [ 4, 5, 6 ], + [ 7, 8, 9 ], +]; + +say min_path($matrix, 0, 0, \@path) + . ": " . (join ' → ', @path); + +# Calculate the max path +sub min_path { + my ($matrix, $m, $n, $path) = @_; + + # Size of matrix + my $max_m = scalar(@{$matrix->[0]}); + my $max_n = scalar(@{$matrix}); + + # Out of bounds + return undef + if ($m >= $max_m || $n >= $max_n); + + # Points in the branch + my $total = $matrix->[$m][$n]; + + # Calculate path + push @$path, $total; + my @path1 = map { $_ } @$path; + my @path2 = map { $_ } @$path; + + # Points produced by each branch + my $score1 = min_path($matrix, $m + 1, $n, \@path1); + my $score2 = min_path($matrix, $m, $n + 1, \@path2); + + # Return the better branch + if ( ($score1 && $score2 && $score1 <= $score2) || + ($score1 && !$score2) ) { + @$path = map { $_ } @path1; + return $total + $score1; + } elsif ( ($score1 && $score2 && $score1 > $score2) || + (!$score1 && $score2) ) { + @$path = map { $_ } @path2; + return $total + $score2; + } else { + return $total; + } +} diff --git a/challenge-064/javier-luque/perl/ch-2.pl b/challenge-064/javier-luque/perl/ch-2.pl new file mode 100644 index 0000000000..8a11885d40 --- /dev/null +++ b/challenge-064/javier-luque/perl/ch-2.pl @@ -0,0 +1,28 @@ +#!/usr/bin/perl +# Test: ./ch-2.pl +use strict; +use warnings; +use feature qw /say/; + +my $S = "perlweeklychallenge"; +my @W = ("weekly", "challenge", "perl"); +say $S; +say check_word($S, \@W); + +my $S2 = "perlandraku"; +my @W2 = ("python", "ruby", "haskell"); +say "\n" . $S2; +say check_word($S2, \@W2); + + +sub check_word { + my ($string, $words) = @_; + + my $word_re = join '|', @$words; + my @split_words = + grep { $_ } + split (/($word_re)/, $string); + + return scalar(@split_words) == scalar(@$words) ? + join ' ', @split_words : 0; +} diff --git a/challenge-064/javier-luque/raku/ch-1.p6 b/challenge-064/javier-luque/raku/ch-1.p6 new file mode 100644 index 0000000000..e53d871277 --- /dev/null +++ b/challenge-064/javier-luque/raku/ch-1.p6 @@ -0,0 +1,49 @@ +# Test: perl6 ch-1.p6 +sub MAIN() { + my @path; + my @matrix = [ + [ 1, 2, 3 ], + [ 4, 5, 6 ], + [ 7, 8, 9 ], + ]; + + say min-path(@matrix, 0, 0, @path) + ~ ': ' ~ @path.join(" → "); +} + +# Calculate the max path +sub min-path(@matrix, Int $m, Int $n, @path) { + + # Size of matrix + my $max_m = @matrix[0].elems; + my $max_n = @matrix.elems; + + # Out of bounds + return Nil + if ($m >= $max_m || $n >= $max_n); + + # Points in the branch + my $total = @matrix[$m][$n]; + + # Calculate path + @path.push($total); + my @path1 = @path.map({ $_ }); + my @path2 = @path.map({ $_ }); + + # Points produced by each branch + my $score1 = min-path(@matrix, $m + 1, $n, @path1); + my $score2 = min-path(@matrix, $m, $n + 1, @path2); + + # Return the better branch + if ( ($score1 && $score2 && $score1 <= $score2) || + ($score1 && !$score2) ) { + @path = @path1.map({ $_ }); + return $total + $score1; + } elsif ( ($score1 && $score2 && $score1 > $score2) || + (!$score1 && $score2) ) { + @path = @path2.map({ $_ }); + return $total + $score2; + } else { + return $total; + } +} diff --git a/challenge-064/javier-luque/raku/ch-2.p6 b/challenge-064/javier-luque/raku/ch-2.p6 new file mode 100644 index 0000000000..6f65f428b4 --- /dev/null +++ b/challenge-064/javier-luque/raku/ch-2.p6 @@ -0,0 +1,21 @@ +# Test: perl6 ch-2.p6 + +sub MAIN() { + my $S = "perlweeklychallenge"; + my @W = ("weekly", "challenge", "perl"); + say $S; + say check-word($S, @W); + + my $S2 = "perlandraku"; + my @W2 = ("python", "ruby", "haskell"); + say "\n" ~ $S2; + say check-word($S2, @W2); +} + +sub check-word(Str $string, @words) { + my @split_words = + $string.split(/<@words>/, :v, :skip-empty); + + return (@split_words.elems == @words.elems) ?? + @split_words.join(" ") !! 0; +} diff --git a/stats/pwc-current.json b/stats/pwc-current.json index fa7329d640..81d61d5919 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,25 +1,37 @@ { - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "Perl Weekly Challenge - 064" + "subtitle" : { + "text" : "[Champions: 2] Last updated at 2020-06-08 11:53:06 GMT" }, - "legend" : { - "enabled" : 0 + "xAxis" : { + "type" : "category" }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1, + "headerFormat" : "{series.name}
" }, "drilldown" : { "series" : [ { + "id" : "Javier Luque", + "name" : "Javier Luque", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ] + }, + { + "id" : "Luca Ferrari", "data" : [ [ "Raku", @@ -30,38 +42,49 @@ 2 ] ], - "name" : "Luca Ferrari", - "id" : "Luca Ferrari" + "name" : "Luca Ferrari" } ] }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, + "title" : { + "text" : "Perl Weekly Challenge - 064" + }, + "chart" : { + "type" : "column" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, "series" : [ { + "colorByPoint" : 1, "data" : [ { - "name" : "Luca Ferrari", + "y" : 5, + "drilldown" : "Javier Luque", + "name" : "Javier Luque" + }, + { + "y" : 4, "drilldown" : "Luca Ferrari", - "y" : 4 + "name" : "Luca Ferrari" } ], - "name" : "Perl Weekly Challenge - 064", - "colorByPoint" : 1 + "name" : "Perl Weekly Challenge - 064" } ], - "tooltip" : { - "headerFormat" : "{series.name}
", - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "xAxis" : { - "type" : "category" - }, - "subtitle" : { - "text" : "[Champions: 1] Last updated at 2020-06-08 11:33:37 GMT" + "legend" : { + "enabled" : 0 } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index f2045be768..88a5ddfdd8 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,52 +1,36 @@ { - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - } - } - }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null - } - }, - "subtitle" : { - "text" : "Last updated at 2020-06-08 11:33:37 GMT" - }, - "legend" : { - "enabled" : "false" - }, "title" : { "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" }, "chart" : { "type" : "column" }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" + "yAxis" : { + "min" : 0, + "title" : { + "text" : null + } }, "series" : [ { + "name" : "Contributions", "data" : [ [ "Blog", - 732 + 733 ], [ "Perl", - 2642 + 2644 ], [ "Raku", - 1675 + 1677 ] ], - "name" : "Contributions", "dataLabels" : { + "align" : "right", + "color" : "#FFFFFF", "rotation" : -90, "enabled" : "true", "y" : 10, @@ -54,10 +38,26 @@ "fontSize" : "13px", "fontFamily" : "Verdana, sans-serif" }, - "format" : "{point.y:.0f}", - "align" : "right", - "color" : "#FFFFFF" + "format" : "{point.y:.0f}" } } - ] + ], + "legend" : { + "enabled" : "false" + }, + "xAxis" : { + "type" : "category", + "labels" : { + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + } + }, + "subtitle" : { + "text" : "Last updated at 2020-06-08 11:53:05 GMT" + }, + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index b3afc9e042..b19460d0ba 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,69 +1,55 @@ { - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2020-06-08 11:33:37 GMT" - }, - "xAxis" : { - "type" : "category" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "tooltip" : { - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "followPointer" : "true", - "headerFormat" : "" + "legend" : { + "enabled" : "false" }, "series" : [ { - "colorByPoint" : "true", "name" : "Perl Weekly Challenge Languages", "data" : [ { - "y" : 142, + "name" : "#001", "drilldown" : "001", - "name" : "#001" + "y" : 142 }, { - "name" : "#002", "drilldown" : "002", - "y" : 109 + "y" : 109, + "name" : "#002" }, { "name" : "#003", - "drilldown" : "003", - "y" : 71 + "y" : 71, + "drilldown" : "003" }, { "drilldown" : "004", - "name" : "#004", - "y" : 91 + "y" : 91, + "name" : "#004" }, { "name" : "#005", - "drilldown" : "005", - "y" : 72 + "y" : 72, + "drilldown" : "005" }, { - "y" : 52, "name" : "#006", + "y" : 52, "drilldown" : "006" }, { - "y" : 59, + "name" : "#007", "drilldown" : "007", - "name" : "#007" + "y" : 59 }, { - "drilldown" : "008", "name" : "#008", + "drilldown" : "008", "y" : 72 }, { "y" : 68, - "name" : "#009", - "drilldown" : "009" + "drilldown" : "009", + "name" : "#009" }, { "y" : 60, @@ -71,99 +57,99 @@ "name" : "#010" }, { + "y" : 79, "drilldown" : "011", - "name" : "#011", - "y" : 79 + "name" : "#011" }, { + "y" : 83, "drilldown" : "012", - "name" : "#012", - "y" : 83 + "name" : "#012" }, { + "name" : "#013", "y" : 76, - "drilldown" : "013", - "name" : "#013" + "drilldown" : "013" }, { "name" : "#014", - "drilldown" : "014", - "y" : 96 + "y" : 96, + "drilldown" : "014" }, { + "name" : "#015", "y" : 93, - "drilldown" : "015", - "name" : "#015" + "drilldown" : "015" }, { - "drilldown" : "016", "name" : "#016", - "y" : 66 + "y" : 66, + "drilldown" : "016" }, { - "drilldown" : "017", "name" : "#017", + "drilldown" : "017", "y" : 79 }, { - "name" : "#018", "drilldown" : "018", - "y" : 76 + "y" : 76, + "name" : "#018" }, { "drilldown" : "019", - "name" : "#019", - "y" : 97 + "y" : 97, + "name" : "#019" }, { - "drilldown" : "020", "name" : "#020", - "y" : 95 + "y" : 95, + "drilldown" : "020" }, { "y" : 67, - "name" : "#021", - "drilldown" : "021" + "drilldown" : "021", + "name" : "#021" }, { - "y" : 63, "name" : "#022", - "drilldown" : "022" + "drilldown" : "022", + "y" : 63 }, { "name" : "#023", - "drilldown" : "023", - "y" : 91 + "y" : 91, + "drilldown" : "023" }, { - "drilldown" : "024", "name" : "#024", - "y" : 70 + "y" : 70, + "drilldown" : "024" }, { - "name" : "#025", "drilldown" : "025", - "y" : 55 + "y" : 55, + "name" : "#025" }, { + "name" : "#026", "y" : 70, - "drilldown" : "026", - "name" : "#026" + "drilldown" : "026" }, { - "drilldown" : "027", "name" : "#027", + "drilldown" : "027", "y" : 58 }, { + "y" : 78, "drilldown" : "028", - "name" : "#028", - "y" : 78 + "name" : "#028" }, { "drilldown" : "029", - "name" : "#029", - "y" : 77 + "y" : 77, + "name" : "#029" }, { "y" : 115, @@ -171,9 +157,9 @@ "name" : "#030" }, { - "name" : "#031", + "y" : 87, "drilldown" : "031", - "y" : 87 + "name" : "#031" }, { "name" : "#032", @@ -181,49 +167,49 @@ "y" : 92 }, { - "y" : 108, "drilldown" : "033", + "y" : 108, "name" : "#033" }, { - "y" : 62, "drilldown" : "034", + "y" : 62, "name" : "#034" }, { + "name" : "#035", "y" : 62, - "drilldown" : "035", - "name" : "#035" + "drilldown" : "035" }, { + "drilldown" : "036", "y" : 66, - "name" : "#036", - "drilldown" : "036" + "name" : "#036" }, { - "name" : "#037", + "y" : 65, "drilldown" : "037", - "y" : 65 + "name" : "#037" }, { - "y" : 65, "name" : "#038", + "y" : 65, "drilldown" : "038" }, { - "y" : 60, "name" : "#039", - "drilldown" : "039" + "drilldown" : "039", + "y" : 60 }, { - "drilldown" : "040", "name" : "#040", + "drilldown" : "040", "y" : 71 }, { + "y" : 74, "drilldown" : "041", - "name" : "#041", - "y" : 74 + "name" : "#041" }, { "y" : 88, @@ -231,28 +217,28 @@ "name" : "#042" }, { + "y" : 66, "drilldown" : "043", - "name" : "#043", - "y" : 66 + "name" : "#043" }, { "name" : "#044", - "drilldown" : "044", - "y" : 82 + "y" : 82, + "drilldown" : "044" }, { + "y" : 94, "drilldown" : "045", - "name" : "#045", - "y" : 94 + "name" : "#045" }, { "name" : "#046", - "drilldown" : "046", - "y" : 85 + "y" : 85, + "drilldown" : "046" }, { - "y" : 82, "name" : "#047", + "y" : 82, "drilldown" : "047" }, { @@ -261,24 +247,24 @@ "name" : "#048" }, { - "drilldown" : "049", "name" : "#049", + "drilldown" : "049", "y" : 85 }, { - "y" : 96, "drilldown" : "050", + "y" : 96, "name" : "#050" }, { - "y" : 87, "drilldown" : "051", + "y" : 87, "name" : "#051" }, { "name" : "#052", - "drilldown" : "052", - "y" : 89 + "y" : 89, + "drilldown" : "052" }, { "y" : 99, @@ -286,14 +272,14 @@ "name" : "#053" }, { - "y" : 99, "drilldown" : "054", + "y" : 99, "name" : "#054" }, { "name" : "#055", - "drilldown" : "055", - "y" : 86 + "y" : 86, + "drilldown" : "055" }, { "y" : 93, @@ -301,48 +287,69 @@ "name" : "#056" }, { - "y" : 78, "name" : "#057", - "drilldown" : "057" + "drilldown" : "057", + "y" : 78 }, { + "y" : 61, "drilldown" : "058", - "name" : "#058", - "y" : 61 + "name" : "#058" }, { "drilldown" : "059", - "name" : "#059", - "y" : 82 + "y" : 82, + "name" : "#059" }, { "name" : "#060", - "drilldown" : "060", - "y" : 78 + "y" : 78, + "drilldown" : "060" }, { "drilldown" : "061", - "name" : "#061", - "y" : 79 + "y" : 79, + "name" : "#061" }, { - "y" : 53, "name" : "#062", + "y" : 53, "drilldown" : "062" }, { + "y" : 85, "drilldown" : "063", - "name" : "#063", - "y" : 85 + "name" : "#063" }, { - "drilldown" : "064", "name" : "#064", - "y" : 4 + "drilldown" : "064", + "y" : 9 } - ] + ], + "colorByPoint" : "true" } ], + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "chart" : { + "type" : "column" + }, + "title" : { + "text" : "Perl Weekly Challenge Language" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, "drilldown" : { "series" : [ { @@ -364,6 +371,8 @@ ] }, { + "id" : "002", + "name" : "002", "data" : [ [ "Perl", @@ -377,13 +386,9 @@ "Blog", 10 ] - ], - "name" : "002", - "id" : "002" + ] }, { - "id" : "003", - "name" : "003", "data" : [ [ "Perl", @@ -397,9 +402,12 @@ "Blog", 9 ] - ] + ], + "name" : "003", + "id" : "003" }, { + "name" : "004", "data" : [ [ "Perl", @@ -414,10 +422,10 @@ 10 ] ], - "name" : "004", "id" : "004" }, { + "name" : "005", "data" : [ [ "Perl", @@ -432,11 +440,10 @@ 12 ] ], - "name" : "005", "id" : "005" }, { - "name" : "006", + "id" : "006", "data" : [ [ "Perl", @@ -451,10 +458,9 @@ 7 ] ], - "id" : "006" + "name" : "006" }, { - "id" : "007", "data" : [ [ "Perl", @@ -469,9 +475,12 @@ 10 ] ], - "name" : "007" + "name" : "007", + "id" : "007" }, { + "id" : "008", + "name" : "008", "data" : [ [ "Perl", @@ -485,13 +494,9 @@ "Blog", 12 ] - ], - "name" : "008", - "id" : "008" + ] }, { - "id" : "009", - "name" : "009", "data" : [ [ "Perl", @@ -505,10 +510,11 @@ "Blog", 13 ] - ] + ], + "name" : "009", + "id" : "009" }, { - "name" : "010", "data" : [ [ "Perl", @@ -523,10 +529,10 @@ 11 ] ], + "name" : "010", "id" : "010" }, { - "id" : "011", "data" : [ [ "Perl", @@ -541,9 +547,11 @@ 10 ] ], - "name" : "011" + "name" : "011", + "id" : "011" }, { + "name" : "012", "data" : [ [ "Perl", @@ -558,10 +566,10 @@ 11 ] ], - "name" : "012", "id" : "012" }, { + "id" : "013", "data" : [ [ "Perl", @@ -576,11 +584,9 @@ 13 ] ], - "name" : "013", - "id" : "013" + "name" : "013" }, { - "id" : "014", "name" : "014", "data" : [ [ @@ -595,10 +601,10 @@ "Blog", 15 ] - ] + ], + "id" : "014" }, { - "id" : "015", "name" : "015", "data" : [ [ @@ -613,7 +619,8 @@ "Blog", 15 ] - ] + ], + "id" : "015" }, { "id" : "016", @@ -634,7 +641,6 @@ "name" : "016" }, { - "name" : "017", "data" : [ [ "Perl", @@ -649,6 +655,7 @@ 12 ] ], + "name" : "017", "id" : "017" }, { @@ -671,6 +678,7 @@ }, { "id" : "019", + "name" : "019", "data" : [ [ "Perl", @@ -684,11 +692,10 @@ "Blog", 13 ] - ], - "name" : "019" + ] }, { - "name" : "020", + "id" : "020", "data" : [ [ "Perl", @@ -703,7 +710,7 @@ 13 ] ], - "id" : "020" + "name" : "020" }, { "data" : [ @@ -724,7 +731,6 @@ "id" : "021" }, { - "name" : "022", "data" : [ [ "Perl", @@ -739,10 +745,11 @@ 10 ] ], + "name" : "022", "id" : "022" }, { - "id" : "023", + "name" : "023", "data" : [ [ "Perl", @@ -757,9 +764,10 @@ 12 ] ], - "name" : "023" + "id" : "023" }, { + "id" : "024", "data" : [ [ "Perl", @@ -774,10 +782,10 @@ 11 ] ], - "name" : "024", - "id" : "024" + "name" : "024" }, { + "name" : "025", "data" : [ [ "Perl", @@ -792,11 +800,10 @@ 12 ] ], - "name" : "025", "id" : "025" }, { - "name" : "026", + "id" : "026", "data" : [ [ "Perl", @@ -811,11 +818,9 @@ 10 ] ], - "id" : "026" + "name" : "026" }, { - "id" : "027", - "name" : "027", "data" : [ [ "Perl", @@ -829,10 +834,12 @@ "Blog", 9 ] - ] + ], + "name" : "027", + "id" : "027" }, { - "name" : "028", + "id" : "028", "data" : [ [ "Perl", @@ -847,9 +854,10 @@ 9 ] ], - "id" : "028" + "name" : "028" }, { + "id" : "029", "name" : "029", "data" : [ [ @@ -864,8 +872,7 @@ "Blog", 12 ] - ], - "id" : "029" + ] }, { "id" : "030", @@ -887,7 +894,6 @@ }, { "id" : "031", - "name" : "031", "data" : [ [ "Perl", @@ -901,10 +907,10 @@ "Blog", 9 ] - ] + ], + "name" : "031" }, { - "id" : "032", "name" : "032", "data" : [ [ @@ -919,9 +925,12 @@ "Blog", 10 ] - ] + ], + "id" : "032" }, { + "id" : "033", + "name" : "033", "data" : [ [ "Perl", @@ -935,9 +944,7 @@ "Blog", 10 ] - ], - "name" : "033", - "id" : "033" + ] }, { "name" : "034", @@ -958,8 +965,6 @@ "id" : "034" }, { - "id" : "035", - "name" : "035", "data" : [ [ "Perl", @@ -973,7 +978,9 @@ "Blog", 9 ] - ] + ], + "name" : "035", + "id" : "035" }, { "name" : "036", @@ -995,6 +1002,7 @@ }, { "id" : "037", + "name" : "037", "data" : [ [ "Perl", @@ -1008,11 +1016,10 @@ "Blog", 9 ] - ], - "name" : "037" + ] }, { - "name" : "038", + "id" : "038", "data" : [ [ "Perl", @@ -1027,11 +1034,10 @@ 12 ] ], - "id" : "038" + "name" : "038" }, { "id" : "039", - "name" : "039", "data" : [ [ "Perl", @@ -1045,10 +1051,10 @@ "Blog", 12 ] - ] + ], + "name" : "039" }, { - "id" : "040", "name" : "040", "data" : [ [ @@ -1063,10 +1069,10 @@ "Blog", 10 ] - ] + ], + "id" : "040" }, { - "name" : "041", "data" : [ [ "Perl", @@ -1081,6 +1087,7 @@ 9 ] ], + "name" : "041", "id" : "041" }, { @@ -1102,8 +1109,6 @@ "name" : "042" }, { - "id" : "043", - "name" : "043", "data" : [ [ "Perl", @@ -1117,9 +1122,12 @@ "Blog", 11 ] - ] + ], + "name" : "043", + "id" : "043" }, { + "id" : "044", "name" : "044", "data" : [ [ @@ -1134,11 +1142,9 @@ "Blog", 11 ] - ], - "id" : "044" + ] }, { - "id" : "045", "data" : [ [ "Perl", @@ -1153,7 +1159,8 @@ 11 ] ], - "name" : "045" + "name" : "045", + "id" : "045" }, { "name" : "046", @@ -1174,6 +1181,8 @@ "id" : "046" }, { + "id" : "047", + "name" : "047", "data" : [ [ "Perl", @@ -1187,13 +1196,9 @@ "Blog", 10 ] - ], - "name" : "047", - "id" : "047" + ] }, { - "id" : "048", - "name" : "048", "data" : [ [ "Perl", @@ -1207,9 +1212,12 @@ "Blog", 12 ] - ] + ], + "name" : "048", + "id" : "048" }, { + "id" : "049", "data" : [ [ "Perl", @@ -1224,10 +1232,11 @@ 12 ] ], - "name" : "049", - "id" : "049" + "name" : "049" }, { + "id" : "050", + "name" : "050", "data" : [ [ "Perl", @@ -1241,9 +1250,7 @@ "Blog", 12 ] - ], - "name" : "050", - "id" : "050" + ] }, { "id" : "051", @@ -1264,8 +1271,6 @@ ] }, { - "id" : "052", - "name" : "052", "data" : [ [ "Perl", @@ -1279,11 +1284,11 @@ "Blog", 14 ] - ] + ], + "name" : "052", + "id" : "052" }, { - "id" : "053", - "name" : "053", "data" : [ [ "Perl", @@ -1297,10 +1302,12 @@ "Blog", 15 ] - ] + ], + "name" : "053", + "id" : "053" }, { - "name" : "054", + "id" : "054", "data" : [ [ "Perl", @@ -1315,9 +1322,10 @@ 16 ] ], - "id" : "054" + "name" : "054" }, { + "name" : "055", "data" : [ [ "Perl", @@ -1332,7 +1340,6 @@ 14 ] ], - "name" : "055", "id" : "055" }, { @@ -1354,7 +1361,6 @@ "name" : "056" }, { - "id" : "057", "name" : "057", "data" : [ [ @@ -1369,7 +1375,8 @@ "Blog", 15 ] - ] + ], + "id" : "057" }, { "id" : "058", @@ -1390,7 +1397,6 @@ "name" : "058" }, { - "name" : "059", "data" : [ [ "Perl", @@ -1405,6 +1411,7 @@ 15 ] ], + "name" : "059", "id" : "059" }, { @@ -1444,6 +1451,7 @@ "id" : "061" }, { + "id" : "062", "name" : "062", "data" : [ [ @@ -1458,12 +1466,10 @@ "Blog", 11 ] - ], - "id" : "062" + ] }, { "id" : "063", - "name" : "063", "data" : [ [ "Perl", @@ -1477,44 +1483,38 @@ "Blog", 13 ] - ] + ], + "name" : "063" }, { + "id" : "064", "name" : "064", "data" : [ [ "Perl", - 0 + 2 ], [ "Raku", - 2 + 4 ], [ "Blog", - 2 + 3 ] - ], - "id" : "064" + ] } ] }, - "legend" : { - "enabled" : "false" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } + "tooltip" : { + "headerFormat" : "", + "pointFormat" : "Challenge {point.name}: {point.y:f}
", + "followPointer" : "true" }, - "chart" : { - "type" : "column" + "xAxis" : { + "type" : "category" }, - "title" : { - "text" : "Perl Weekly Challenge Language" + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2020-06-08 11:53:06 GMT" } } diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index d1f9fe60cf..dcc5f75f27 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -1,15 +1,282 @@ { - "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2020-06-08 11:33:37 GMT" - }, - "xAxis" : { - "type" : "category" + "title" : { + "text" : "Perl Weekly Challenge Leaders (TOP 50)" }, "yAxis" : { "title" : { "text" : "Total Score" } }, + "chart" : { + "type" : "column" + }, + "series" : [ + { + "name" : "Perl Weekly Challenge Leaders", + "data" : [ + { + "drilldown" : "Laurent Rosenfeld", + "y" : 736, + "name" : "#1: Laurent Rosenfeld" + }, + { + "name" : "#2: Jaldhar H. Vyas", + "drilldown" : "Jaldhar H. Vyas", + "y" : 512 + }, + { + "y" : 452, + "drilldown" : "Ruben Westerberg", + "name" : "#3: Ruben Westerberg" + }, + { + "name" : "#4: Roger Bell_West", + "drilldown" : "Roger Bell_West", + "y" : 416 + }, + { + "y" : 396, + "drilldown" : "Arne Sommer", + "name" : "#5: Arne Sommer" + }, + { + "name" : "#6: E. Choroba", + "drilldown" : "E. Choroba", + "y" : 340 + }, + { + "name" : "#7: Javier Luque", + "y" : 340, + "drilldown" : "Javier Luque" + }, + { + "y" : 334, + "drilldown" : "Joelle Maslak", + "name" : "#8: Joelle Maslak" + }, + { + "name" : "#9: Adam Russell", + "y" : 328, + "drilldown" : "Adam Russell" + }, + { + "y" : 284, + "drilldown" : "Athanasius", + "name" : "#10: Athanasius" + }, + { + "y" : 278, + "drilldown" : "Ryan Thompson", + "name" : "#11: Ryan Thompson" + }, + { + "name" : "#12: Colin Crain", + "y" : 258, + "drilldown" : "Colin Crain" + }, + { + "drilldown" : "Simon Proctor", + "y" : 244, + "name" : "#13: Simon Proctor" + }, + { + "y" : 240, + "drilldown" : "Dave Jacoby", + "name" : "#14: Dave Jacoby" + }, + { + "drilldown" : "Andrezgz", + "y" : 230, + "name" : "#15: Andrezgz" + }, + { + "y" : 226, + "drilldown" : "Duncan C. White", + "name" : "#16: Duncan C. White" + }, + { + "name" : "#17: Yet Ebreo", + "y" : 184, + "drilldown" : "Yet Ebreo" + }, + { + "name" : "#18: Kevin Colyer", + "y" : 176, + "drilldown" : "Kevin Colyer" + }, + { + "name" : "#19: Luca Ferrari", + "y" : 168, + "drilldown" : "Luca Ferrari" + }, + { + "drilldown" : "Mohammad S Anwar", + "y" : 164, + "name" : "#20: Mohammad S Anwar" + }, + { + "drilldown" : "Kian-Meng Ang", + "y" : 162, + "name" : "#21: Kian-Meng Ang" + }, + { + "y" : 156, + "drilldown" : "Ulrich Rieke", + "name" : "#22: Ulrich Rieke" + }, + { + "name" : "#23: Noud Aldenhoven", + "drilldown" : "Noud Aldenhoven", + "y" : 152 + }, + { + "name" : "#24: Duane Powell", + "y" : 136, + "drilldown" : "Duane Powell" + }, + { + "y" : 136, + "drilldown" : "Steven Wilson", + "name" : "#25: Steven Wilson" + }, + { + "name" : "#26: Markus Holzer", + "y" : 128, + "drilldown" : "Markus Holzer" + }, + { + "y" : 118, + "drilldown" : "Lubos Kolouch", + "name" : "#27: Lubos Kolouch" + }, + { + "y" : 110, + "drilldown" : "Saif Ahmed", + "name" : "#28: Saif Ahmed" + }, + { + "name" : "#29: Burkhard Nickels", + "y" : 108, + "drilldown" : "Burkhard Nickels" + }, + { + "name" : "#30: Alicia Bielsa", + "drilldown" : "Alicia Bielsa", + "y" : 106 + }, + { + "name" : "#31: Mark Anderson", + "drilldown" : "Mark Anderson", + "y" : 106 + }, + { + "name" : "#32: Francis Whittle", + "y" : 96, + "drilldown" : "Francis Whittle" + }, + { + "name" : "#33: Cheok-Yin Fung", + "drilldown" : "Cheok-Yin Fung", + "y" : 94 + }, + { + "y" : 94, + "drilldown" : "Wanderdoc", + "name" : "#34: Wanderdoc" + }, + { + "name" : "#35: Feng Chang", + "y" : 88, + "drilldown" : "Feng Chang" + }, + { + "drilldown" : "Daniel Mantovani", + "y" : 86, + "name" : "#36: Daniel Mantovani" + }, + { + "drilldown" : "Mark Senn", + "y" : 80, + "name" : "#37: Mark Senn" + }, + { + "name" : "#38: Dave Cross", + "y" : 76, + "drilldown" : "Dave Cross" + }, + { + "name" : "#39: Gustavo Chaves", + "drilldown" : "Gustavo Chaves", + "y" : 72 + }, + { + "name" : "#40: Yozen Hernandez", + "y" : 70, + "drilldown" : "Yozen Hernandez" + }, + { + "name" : "#41: Shahed Nooshmand", + "y" : 68, + "drilldown" : "Shahed Nooshmand" + }, + { + "name" : "#42: Guillermo Ramos", + "y" : 64, + "drilldown" : "Guillermo Ramos" + }, + { + "y" : 60, + "drilldown" : "Jo Christian Oterhals", + "name" : "#43: Jo Christian Oterhals" + }, + { + "y" : 56, + "drilldown" : "Ozzy", + "name" : "#44: Ozzy" + }, + { + "name" : "#45: Dr James A. Smith", + "y" : 52, + "drilldown" : "Dr James A. Smith" + }, + { + "name" : "#46: Randy Lauen", + "drilldown" : "Randy Lauen", + "y" : 52 + }, + { + "name" : "#47: Daniel Mita", + "drilldown" : "Daniel Mita", + "y" : 48 + }, + { + "name" : "#48: User Person", + "y" : 48, + "drilldown" : "User Person" + }, + { + "drilldown" : "Jared Martin", + "y" : 44, + "name" : "#49: Jared Martin" + }, + { + "drilldown" : "Veesh Goldman", + "y" : 44, + "name" : "#50: Veesh Goldman" + } + ], + "colorByPoint" : "true" + } + ], + "legend" : { + "enabled" : "false" + }, + "subtitle" : { + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2020-06-08 11:53:05 GMT" + }, + "xAxis" : { + "type" : "category" + }, "tooltip" : { "headerFormat" : "", "followPointer" : "true", @@ -18,6 +285,7 @@ "drilldown" : { "series" : [ { + "id" : "Laurent Rosenfeld", "name" : "Laurent Rosenfeld", "data" : [ [ @@ -32,11 +300,10 @@ "Raku", 123 ] - ], - "id" : "Laurent Rosenfeld" + ] }, { - "name" : "Jaldhar H. Vyas", + "id" : "Jaldhar H. Vyas", "data" : [ [ "Blog", @@ -51,10 +318,9 @@ 107 ] ], - "id" : "Jaldhar H. Vyas" + "name" : "Jaldhar H. Vyas" }, { - "id" : "Ruben Westerberg", "name" : "Ruben Westerberg", "data" : [ [ @@ -65,11 +331,10 @@ "Raku", 113 ] - ] + ], + "id" : "Ruben Westerberg" }, { - "id" : "Roger Bell_West", - "name" : "Roger Bell_West", "data" : [ [ "Blog", @@ -83,10 +348,11 @@ "Raku", 67 ] - ] + ], + "name" : "Roger Bell_West", + "id" : "Roger Bell_West" }, { - "id" : "Arne Sommer", "data" : [ [ "Bash", @@ -105,9 +371,11 @@ 126 ] ], - "name" : "Arne Sommer" + "name" : "Arne Sommer", + "id" : "Arne Sommer" }, { + "id" : "E. Choroba", "data" : [ [ "Blog", @@ -118,42 +386,41 @@ 118 ] ], - "name" : "E. Choroba", - "id" : "E. Choroba" + "name" : "E. Choroba" }, { - "name" : "Joelle Maslak", + "id" : "Javier Luque", "data" : [ [ "Blog", - 5 + 34 ], [ "Perl", - 81 + 68 ], [ "Raku", - 81 + 68 ] ], - "id" : "Joelle Maslak" + "name" : "Javier Luque" }, { - "id" : "Javier Luque", - "name" : "Javier Luque", + "id" : "Joelle Maslak", + "name" : "Joelle Maslak", "data" : [ [ "Blog", - 33 + 5 ], [ "Perl", - 66 + 81 ], [ "Raku", - 66 + 81 ] ] }, @@ -176,7 +443,7 @@ "id" : "Adam Russell" }, { - "name" : "Athanasius", + "id" : "Athanasius", "data" : [ [ "Blog", @@ -191,7 +458,7 @@ 53 ] ], - "id" : "Athanasius" + "name" : "Athanasius" }, { "id" : "Ryan Thompson", @@ -212,6 +479,7 @@ ] }, { + "id" : "Colin Crain", "name" : "Colin Crain", "data" : [ [ @@ -226,10 +494,10 @@ "Raku", 42 ] - ], - "id" : "Colin Crain" + ] }, { + "name" : "Simon Proctor", "data" : [ [ "Blog", @@ -244,11 +512,11 @@ 107 ] ], - "name" : "Simon Proctor", "id" : "Simon Proctor" }, { "id" : "Dave Jacoby", + "name" : "Dave Jacoby", "data" : [ [ "Blog", @@ -262,21 +530,20 @@ "Raku", 1 ] - ], - "name" : "Dave Jacoby" + ] }, { - "name" : "Andrezgz", + "id" : "Andrezgz", "data" : [ [ "Perl", 115 ] ], - "id" : "Andrezgz" + "name" : "Andrezgz" }, { - "name" : "Duncan C. White", + "id" : "Duncan C. White", "data" : [ [ "Blog", @@ -287,10 +554,9 @@ 112 ] ], - "id" : "Duncan C. White" + "name" : "Duncan C. White" }, { - "id" : "Yet Ebreo", "name" : "Yet Ebreo", "data" : [ [ @@ -305,7 +571,8 @@ "Raku", 21 ] - ] + ], + "id" : "Yet Ebreo" }, { "id" : "Kevin Colyer", @@ -326,6 +593,7 @@ "name" : "Kevin Colyer" }, { + "id" : "Luca Ferrari", "data" : [ [ "Blog", @@ -336,10 +604,11 @@ 44 ] ], - "name" : "Luca Ferrari", - "id" : "Luca Ferrari" + "name" : "Luca Ferrari" }, { + "id" : "Mohammad S Anwar", + "name" : "Mohammad S Anwar", "data" : [ [ "Blog", @@ -353,13 +622,9 @@ "Raku", 32 ] - ], - "name" : "Mohammad S Anwar", - "id" : "Mohammad S Anwar" + ] }, { - "id" : "Kian-Meng Ang", - "name" : "Kian-Meng Ang", "data" : [ [ "Blog", @@ -369,9 +634,12 @@ "Perl", 38 ] - ] + ], + "name" : "Kian-Meng Ang", + "id" : "Kian-Meng Ang" }, { + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -382,8 +650,7 @@ 48 ] ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" + "name" : "Ulrich Rieke" }, { "id" : "Noud Aldenhoven", @@ -410,7 +677,6 @@ "name" : "Duane Powell" }, { - "name" : "Steven Wilson", "data" : [ [ "Blog", @@ -425,10 +691,10 @@ 1 ] ], + "name" : "Steven Wilson", "id" : "Steven Wilson" }, { - "id" : "Markus Holzer", "data" : [ [ "Perl", @@ -439,7 +705,8 @@ 58 ] ], - "name" : "Markus Holzer" + "name" : "Markus Holzer", + "id" : "Markus Holzer" }, { "id" : "Lubos Kolouch", @@ -452,7 +719,7 @@ ] }, { - "id" : "Saif Ahmed", + "name" : "Saif Ahmed", "data" : [ [ "Blog", @@ -463,9 +730,10 @@ 54 ] ], - "name" : "Saif Ahmed" + "id" : "Saif Ahmed" }, { + "id" : "Burkhard Nickels", "name" : "Burkhard Nickels", "data" : [ [ @@ -480,11 +748,10 @@ "Raku", 8 ] - ], - "id" : "Burkhard Nickels" + ] }, { - "name" : "Alicia Bielsa", + "id" : "Alicia Bielsa", "data" : [ [ "Perl", @@ -495,10 +762,10 @@ 9 ] ], - "id" : "Alicia Bielsa" + "name" : "Alicia Bielsa" }, { - "id" : "Mark Anderson", + "name" : "Mark Anderson", "data" : [ [ "Perl", @@ -509,10 +776,9 @@ 34 ] ], - "name" : "Mark Anderson" + "id" : "Mark Anderson" }, { - "id" : "Francis Whittle", "data" : [ [ "Blog", @@ -523,10 +789,10 @@ 39 ] ], - "name" : "Francis Whittle" + "name" : "Francis Whittle", + "id" : "Francis Whittle" }, { - "id" : "Cheok-Yin Fung", "name" : "Cheok-Yin Fung", "data" : [ [ @@ -537,20 +803,21 @@ "Perl", 36 ] - ] + ], + "id" : "Cheok-Yin Fung" }, { - "id" : "Wanderdoc", "data" : [ [ "Perl", 47 ] ], - "name" : "Wanderdoc" + "name" : "Wanderdoc", + "id" : "Wanderdoc" }, { - "name" : "Feng Chang", + "id" : "Feng Chang", "data" : [ [ "Perl", @@ -561,17 +828,17 @@ 23 ] ], - "id" : "Feng Chang" + "name" : "Feng Chang" }, { "id" : "Daniel Mantovani", + "name" : "Daniel Mantovani", "data" : [ [ "Perl", 43 ] - ], - "name" : "Daniel Mantovani" + ] }, { "id" : "Mark Senn", @@ -588,6 +855,7 @@ ] }, { + "name" : "Dave Cross", "data" : [ [ "Blog", @@ -598,7 +866,6 @@ 36 ] ], - "name" : "Dave Cross", "id" : "Dave Cross" }, { @@ -616,6 +883,8 @@ ] }, { + "id" : "Yozen Hernandez", + "name" : "Yozen Hernandez", "data" : [ [ "Blog", @@ -625,12 +894,11 @@ "Perl", 21 ] - ], - "name" : "Yozen Hernandez", - "id" : "Yozen Hernandez" + ] }, { "id" : "Shahed Nooshmand", + "name" : "Shahed Nooshmand", "data" : [ [ "Blog", @@ -644,18 +912,17 @@ "Raku", 22 ] - ], - "name" : "Shahed Nooshmand" + ] }, { "id" : "Guillermo Ramos", + "name" : "Guillermo Ramos", "data" : [ [ "Perl", 32 ] - ], - "name" : "Guillermo Ramos" + ] }, { "id" : "Jo Christian Oterhals", @@ -676,14 +943,14 @@ "name" : "Jo Christian Oterhals" }, { + "id" : "Ozzy", "data" : [ [ "Raku", 28 ] ], - "name" : "Ozzy", - "id" : "Ozzy" + "name" : "Ozzy" }, { "name" : "Dr James A. Smith", @@ -700,6 +967,7 @@ "id" : "Dr James A. Smith" }, { + "id" : "Randy Lauen", "name" : "Randy Lauen", "data" : [ [ @@ -710,10 +978,10 @@ "Raku", 17 ] - ], - "id" : "Randy Lauen" + ] }, { + "id" : "Daniel Mita", "name" : "Daniel Mita", "data" : [ [ @@ -724,8 +992,7 @@ "Raku", 21 ] - ], - "id" : "Daniel Mita" + ] }, { "data" : [ @@ -771,264 +1038,6 @@ } ] }, - "series" : [ - { - "data" : [ - { - "drilldown" : "Laurent Rosenfeld", - "name" : "#1: Laurent Rosenfeld", - "y" : 736 - }, - { - "name" : "#2: Jaldhar H. Vyas", - "drilldown" : "Jaldhar H. Vyas", - "y" : 512 - }, - { - "name" : "#3: Ruben Westerberg", - "drilldown" : "Ruben Westerberg", - "y" : 452 - }, - { - "y" : 416, - "drilldown" : "Roger Bell_West", - "name" : "#4: Roger Bell_West" - }, - { - "drilldown" : "Arne Sommer", - "name" : "#5: Arne Sommer", - "y" : 396 - }, - { - "name" : "#6: E. Choroba", - "drilldown" : "E. Choroba", - "y" : 340 - }, - { - "name" : "#7: Joelle Maslak", - "drilldown" : "Joelle Maslak", - "y" : 334 - }, - { - "name" : "#8: Javier Luque", - "drilldown" : "Javier Luque", - "y" : 330 - }, - { - "drilldown" : "Adam Russell", - "name" : "#9: Adam Russell", - "y" : 328 - }, - { - "y" : 284, - "drilldown" : "Athanasius", - "name" : "#10: Athanasius" - }, - { - "y" : 278, - "name" : "#11: Ryan Thompson", - "drilldown" : "Ryan Thompson" - }, - { - "drilldown" : "Colin Crain", - "name" : "#12: Colin Crain", - "y" : 258 - }, - { - "y" : 244, - "drilldown" : "Simon Proctor", - "name" : "#13: Simon Proctor" - }, - { - "y" : 240, - "drilldown" : "Dave Jacoby", - "name" : "#14: Dave Jacoby" - }, - { - "y" : 230, - "drilldown" : "Andrezgz", - "name" : "#15: Andrezgz" - }, - { - "name" : "#16: Duncan C. White", - "drilldown" : "Duncan C. White", - "y" : 226 - }, - { - "y" : 184, - "name" : "#17: Yet Ebreo", - "drilldown" : "Yet Ebreo" - }, - { - "y" : 176, - "name" : "#18: Kevin Colyer", - "drilldown" : "Kevin Colyer" - }, - { - "y" : 168, - "name" : "#19: Luca Ferrari", - "drilldown" : "Luca Ferrari" - }, - { - "drilldown" : "Mohammad S Anwar", - "name" : "#20: Mohammad S Anwar", - "y" : 164 - }, - { - "y" : 162, - "drilldown