From cfa0021bbaa682829341bf134823454b9c4d148f Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Fri, 23 Dec 2022 09:14:12 +0000 Subject: - Added solutions by Stephen G. Lynn. - Added solutions by Pip Stuart. - Added solutions by Robert DiCicco. - Added solutions by Laurent Rosenfeld. --- challenge-196/laurent-rosenfeld/blog.txt | 1 + challenge-196/laurent-rosenfeld/perl/ch-1.pl | 25 + challenge-196/laurent-rosenfeld/perl/ch-2.pl | 28 + challenge-196/laurent-rosenfeld/raku/ch-1.raku | 33 + challenge-196/laurent-rosenfeld/raku/ch-2.raku | 22 + challenge-196/robert-dicicco/julia/ch-1.jl | 147 + challenge-196/robert-dicicco/python/ch-1.py | 121 + challenge-196/robert-dicicco/raku/ch-1.raku | 131 + challenge-196/robert-dicicco/ruby/ch-1.rb | 145 + stats/pwc-current.json | 226 +- stats/pwc-language-breakdown-summary.json | 60 +- stats/pwc-language-breakdown.json | 7728 ++++++++++++------------ stats/pwc-leaders.json | 790 +-- stats/pwc-summary-1-30.json | 102 +- stats/pwc-summary-121-150.json | 112 +- stats/pwc-summary-151-180.json | 102 +- stats/pwc-summary-181-210.json | 38 +- stats/pwc-summary-211-240.json | 48 +- stats/pwc-summary-241-270.json | 62 +- stats/pwc-summary-271-300.json | 44 +- stats/pwc-summary-31-60.json | 122 +- stats/pwc-summary-61-90.json | 42 +- stats/pwc-summary-91-120.json | 110 +- stats/pwc-summary.json | 40 +- 24 files changed, 5504 insertions(+), 4775 deletions(-) create mode 100644 challenge-196/laurent-rosenfeld/blog.txt create mode 100644 challenge-196/laurent-rosenfeld/perl/ch-1.pl create mode 100644 challenge-196/laurent-rosenfeld/perl/ch-2.pl create mode 100644 challenge-196/laurent-rosenfeld/raku/ch-1.raku create mode 100644 challenge-196/laurent-rosenfeld/raku/ch-2.raku create mode 100644 challenge-196/robert-dicicco/julia/ch-1.jl create mode 100644 challenge-196/robert-dicicco/python/ch-1.py create mode 100644 challenge-196/robert-dicicco/raku/ch-1.raku create mode 100644 challenge-196/robert-dicicco/ruby/ch-1.rb diff --git a/challenge-196/laurent-rosenfeld/blog.txt b/challenge-196/laurent-rosenfeld/blog.txt new file mode 100644 index 0000000000..9692dfd5c1 --- /dev/null +++ b/challenge-196/laurent-rosenfeld/blog.txt @@ -0,0 +1 @@ +https://blogs.perl.org/users/laurent_r/2022/12/perl-weekly-challenge-196-pattern-132-and-range-list.html diff --git a/challenge-196/laurent-rosenfeld/perl/ch-1.pl b/challenge-196/laurent-rosenfeld/perl/ch-1.pl new file mode 100644 index 0000000000..04af5d864d --- /dev/null +++ b/challenge-196/laurent-rosenfeld/perl/ch-1.pl @@ -0,0 +1,25 @@ +use strict; +use warnings; +use feature qw/say/; + +sub find_132 { + my @in = @_; + for my $i (0..$#in) { + my @out = ($in[$i]); + for my $j ($i+1..$#in) { + next unless $in[$j] > $out[0]; + my @out2 = (@out, $in[$j]); + for my $k ($j+1..$#in) { + if ($in[$k] > $out2[0] + and $in[$k] < $out2[1]) { + return @out2, $in[$k]; + } + } + } + } + return "()"; # no solution if we've got here +} +for my $test ( [<3 1 4 2>], [<1 2 3 4>], + [<1 3 2 4 6 5>], [<1 3 4 2>] ) { + say "@$test \t=> ", join " ", find_132 @$test; +} diff --git a/challenge-196/laurent-rosenfeld/perl/ch-2.pl b/challenge-196/laurent-rosenfeld/perl/ch-2.pl new file mode 100644 index 0000000000..6bb0e07798 --- /dev/null +++ b/challenge-196/laurent-rosenfeld/perl/ch-2.pl @@ -0,0 +1,28 @@ +use strict; +use warnings; +use feature qw/say/; + +sub find_ranges { + my @in = @_; + my ($start, $curr); + my @result; + $start = $curr = $in[0]; + for my $i (1..$#in) { + next if $in[$i] == $start; + if ($in[$i] == $curr + 1) { + $curr = $in[$i]; + } else { + push @result, "[$start $curr] " + if $curr > $start; + $start = $in[$i]; + $curr = $start; + } + } + push @result, "[$start $curr]" if $curr > $start; + return @result > 0 ? @result : "[]"; +} +for my $test ([<1 3 4 5 7>], [<1 2 3 6 7 9>], + [<0 1 2 4 5 6 8 9>], [<1 3 4 6 7 11 12 13>], + [<1 3 4 5 7 9>], [<1 3 5>]) { + say sprintf("%-25s", "@$test => "), find_ranges @$test; +} diff --git a/challenge-196/laurent-rosenfeld/raku/ch-1.raku b/challenge-196/laurent-rosenfeld/raku/ch-1.raku new file mode 100644 index 0000000000..cb2024538e --- /dev/null +++ b/challenge-196/laurent-rosenfeld/raku/ch-1.raku @@ -0,0 +1,33 @@ +sub find_132 (@input, @part-result) { + # say @input, " - ", @part-result; + given @part-result.elems { + when 3 { return @part-result } + when 2 { + for 0..@input.end -> $i { + my $ret = find_132 @input[$i^..@input.end], + (@part-result, @input[$i]).flat + if @input[$i] > @part-result[0] + && @input[$i] < @part-result[1]; + return $ret if $ret; + } + } + when 1 { + for 0..@input.end -> $i { + my $ret =find_132 @input[$i^..@input.end], + (@part-result, @input[$i]).flat + if @input[$i] > @part-result[0]; + return $ret if $ret; + } + } + when 0 { + for 0..@input.end -> $i { + my $ret = find_132(@input[$i^..@input.end], + (@input[$i],)); + return $ret if $ret; + } + } + } +} +for <3 1 4 2>, <1 2 3 4>, <1 3 2 4 6 5>, <1 3 4 2> -> @test { + say @test, "\t=> ", (find_132 @test, ()) // "()"; +} diff --git a/challenge-196/laurent-rosenfeld/raku/ch-2.raku b/challenge-196/laurent-rosenfeld/raku/ch-2.raku new file mode 100644 index 0000000000..9c5924d5dc --- /dev/null +++ b/challenge-196/laurent-rosenfeld/raku/ch-2.raku @@ -0,0 +1,22 @@ +sub find-ranges (@in) { + my ($start, $curr); + my @result; + $start = $curr = @in[0]; + for 1..@in.end -> $i { + next if @in[$i] == $start; + if @in[$i] == $curr + 1 { + $curr = @in[$i]; + } else { + push @result, "[$start $curr]" + if $curr - $start > 0; + $start = @in[$i]; + $curr = $start; + } + } + push @result, "[$start $curr]" if $curr > $start; + return @result.elems > 0 ?? @result !! "[]"; +} +for <1 3 4 5 7>, <1 2 3 6 7 9>, <0 1 2 4 5 6 8 9>, + <1 3 4 6 7 11 12 13>, <1 3 4 5 7 9>, <1 3 5> -> @test { + printf "%-20s => %s\n", ~@test, ~find-ranges @test; +} diff --git a/challenge-196/robert-dicicco/julia/ch-1.jl b/challenge-196/robert-dicicco/julia/ch-1.jl new file mode 100644 index 0000000000..ee61fc2159 --- /dev/null +++ b/challenge-196/robert-dicicco/julia/ch-1.jl @@ -0,0 +1,147 @@ +#!/usr/bin/env julia + +#= + +---------------------------------------------- + +AUTHOR: Robert DiCicco + +DATE : 2022-12-20 + +Challenge 196 Pattern 132 ( Julia ) + +SAMPLE OUTPUT + +julia .\Pattern132.jl + +Input: @list = [3, 1, 4, 2] + +Any[1, 4, 2] + +  + +Input: @list = [1, 2, 3, 4] + +Output: -1 + +  + +Input: @list = [1, 3, 2, 4, 6, 5] + +Any[1, 3, 2] + +  + +Input: @list = [1, 3, 4, 2] + +Any[1, 3, 2] + +---------------------------------------------- + +=# + +using Printf + +  + +lists = [[3, 1, 4, 2],[1, 2, 3, 4],[1, 3, 2, 4, 6, 5],[1, 3, 4, 2]] + +out = [] + +  + +function findFirst(list) + + for fi in 1:length(list) + + if list[fi] == 1 + + push!(out, list[fi]) + + return fi + + end + + end + +end + +  + +function findSecond(list, fi) + + fi += 1 + + while fi < length(list) + + if list[fi] >= 3 + + push!(out, list[fi]) + + return fi + + end + + fi += 1 + + end + + return -1 + +end + +  + +function findThird(list, fi) + + fi += 1 + + while fi <= length(list) + + if list[fi] in [1,2,3,4,5,6,7,8,9] + + if list[fi] < out[2] + + push!(out, list[fi]) + + end + + end + + fi += 1 + + end + + return -1 + +end + +  + +for list in lists + + global out + + out = [] + + @printf("Input: @list = %s\n",list) + + retval = findFirst(list); + + secval = findSecond(list, retval) + + thirdval = findThird(list, secval) + + if length(out) == 3 + + println(out) + + else + + println("Output: -1") + + end + + print("\n") + +end diff --git a/challenge-196/robert-dicicco/python/ch-1.py b/challenge-196/robert-dicicco/python/ch-1.py new file mode 100644 index 0000000000..a22a84ef53 --- /dev/null +++ b/challenge-196/robert-dicicco/python/ch-1.py @@ -0,0 +1,121 @@ +#!/usr/bin/env python + +''' + +---------------------------------------------- + +AUTHOR: Robert DiCicco + +DATE : 2022-12-22 + +Challenge 196 Pattern 132 ( Python ) + +SAMPLE OUTPUT + +python .\Pattern132.py + +Input: @list = [3, 1, 4, 2] + +Output: [1, 4, 2] + +  + +Input: @list = [1, 2, 3, 4] + +Output: -1 + +  + +Input: @list = [1, 3, 2, 4, 6, 5] + +Output: [1, 3, 2] + +  + +Input: @list = [1, 3, 4, 2] + +Output: [1, 3, 2] + +---------------------------------------------- + +''' + +import array + +  + +lists = [[3, 1, 4, 2],[1, 2, 3, 4],[1, 3, 2, 4, 6, 5],[1, 3, 4, 2]] + +out = [] + +  + +def findFirst(list): + + for fi in range(len(list)): + + if list[fi] == 1: + + #print(fi) + + out.append(list[fi]) + + return fi + +  + +def findSecond(list, fi): + + fi += 1 + + while fi < len(list): + + if list[fi] >= 3: + + out.append(list[fi]) + + return fi + + fi += 1 + + return -1 + +  + +def findThird(list, fi): + + fi += 1 + + while fi <= len(list) - 1: + + if list[fi] in [1,2,3,4,5,6,7,8,9] : + + if list[fi] < out[1]: + + out.append(list[fi]) + + fi += 1 + + return -1 + +  + +for list in lists: + + out = [] + + print(f"Input: @list = {list}") + + retval = findFirst(list) + + secval = findSecond(list, retval) + + thirdval = findThird(list, secval) + + if len(out) == 3: + + print(f"Output: {out}\n") + + else: + + print("Output: -1\n") diff --git a/challenge-196/robert-dicicco/raku/ch-1.raku b/challenge-196/robert-dicicco/raku/ch-1.raku new file mode 100644 index 0000000000..79517b8cd7 --- /dev/null +++ b/challenge-196/robert-dicicco/raku/ch-1.raku @@ -0,0 +1,131 @@ +#!/usr/bin/env raku + +#`{ + +---------------------------------------------- + +AUTHOR: Robert DiCicco + +DATE : 2022-12-20 + +Challenge 196 Pattern 132 ( Raku ) + +SAMPLE OUTPUT + +raku .\Pattern132.rk + +Input: @n = [3 1 4 2] + +Output: 1 4 2 + +  + +Input: @n = [1 2 3 4] + +Output: -1 + +  + +Input: @n = [1 3 2 4 6 5] + +Output: 1 3 2 + +  + +Input: @n = [1 3 4 2] + +Output: 1 3 2 + +---------------------------------------------- + +} + +  + +my @lists = [[3, 1, 4, 2],[1, 2, 3, 4],[1, 3, 2, 4, 6, 5],[1, 3, 4, 2]]; + +  + +my @out = []; + +  + +sub findFirst(@list) { + + for 0..(@list.elems - 1) -> $fi { + + if @list[$fi] == 1 { + + @out.push: @list[$fi]; + + return $fi + + } + + } + +} + +  + +sub findSecond(@list, $fi is copy) { + + $fi++; + + while $fi < @list.elems { + + if @list[$fi] >= 3 { + + @out.push: @list[$fi]; + + return $fi; + + } + + $fi++; + + } + + return -1; + +} + +  + +sub findThird(@list, $fi is copy) { + + $fi++; + + while $fi < @list.elems { + + if @list[$fi] ~~ any [1,2,3,4,5,6,7,8,9] { + + if @list[$fi] < @out[1] { (@out.push: @list[$fi])} + + } + + $fi++; + + } + + return -1; + +} + +  + +for @lists -> @list { + + @out = []; + + put "Input: @n = \[" ~ @list ~ "]"; + + my $retval = findFirst(@list); + + my $secval = findSecond(@list, $retval); + + my $thirdval = findThird(@list, $secval); + + (@out.elems == 3) ?? put("Output: ",@out,"\n") !! put("Output: -1\n"); + +} diff --git a/challenge-196/robert-dicicco/ruby/ch-1.rb b/challenge-196/robert-dicicco/ruby/ch-1.rb new file mode 100644 index 0000000000..ca5bf79c8f --- /dev/null +++ b/challenge-196/robert-dicicco/ruby/ch-1.rb @@ -0,0 +1,145 @@ +#!/usr/bin/env ruby + +=begin + +---------------------------------------------- + +AUTHOR: Robert DiCicco + +DATE : 2022-12-20 + +Challenge 196 Pattern 132 ( Ruby ) + +SAMPLE OUTPUT + +ruby .\Pattern132.rb + +  + +Input: @list = [3, 1, 4, 2] + +Output: [1, 4, 2] + +  + +Input: @list = [1, 2, 3, 4] + +Output: -1 + +  + +Input: @list = [1, 3, 2, 4, 6, 5] + +Output: [1, 3, 2] + +  + +Input: @list = [1, 3, 4, 2] + +Output: [1, 3, 2] + +---------------------------------------------- + +=end + +  + +lists = [[3, 1, 4, 2],[1, 2, 3, 4],[1, 3, 2, 4, 6, 5],[1, 3, 4, 2]] + +  + +def findFirst(arr) + + $out = Array.new + + for fi in 0..arr.length() - 1 + + if arr[fi] == 1 + + $out.push(arr[fi]) + + return fi + + end + + end + + return -1 + +end + +  + +def findSecond(arr, fi) + + fi += 1 + + while ( fi < arr.length() - 1) + + if arr[fi] >= 3 + + $out.push(arr[fi]) + + return fi + + end + + fi += 1 + + end + + return -1 + +end + +  + +def findThird(arr, fi) + + fi += 1 + + while (fi <= arr.length() - 1) + + if arr[fi] !~ /\D/ + + if arr[fi] < $out[1] + + $out.push(arr[fi]) + + end + + end + + fi += 1 + + end + + return -1 + +end + +  + +lists.each do |list| + + $out = () + + puts("\nInput: @list = #{list}") + + retval = findFirst(list); + + secval = findSecond(list, retval); + + thirdval = findThird(list, secval) + + if $out.length == 3 + + puts("Output: #{$out}") + + else + + puts("Output: -1") + + end + +end diff --git a/stats/pwc-current.json b/stats/pwc-current.json index ffdd0e9d91..33b2fad2e2 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,100 +1,102 @@ { - "subtitle" : { - "text" : "[Champions: 17] Last updated at 2022-12-22 11:23:27 GMT" - }, - "legend" : { - "enabled" : 0 - }, - "xAxis" : { - "type" : "category" - }, - "tooltip" : { - "headerFormat" : "{series.name}
", - "followPointer" : 1, - "pointFormat" : "{point.name}: {point.y:f}
" - }, - "chart" : { - "type" : "column" - }, "series" : [ { - "name" : "The Weekly Challenge - 196", "colorByPoint" : 1, "data" : [ { - "name" : "Athanasius", + "drilldown" : "Athanasius", "y" : 4, - "drilldown" : "Athanasius" + "name" : "Athanasius" }, { - "name" : "Bob Lied", + "drilldown" : "Bob Lied", "y" : 2, - "drilldown" : "Bob Lied" + "name" : "Bob Lied" }, { - "y" : 2, "name" : "Carlos Oliveira", + "y" : 2, "drilldown" : "Carlos Oliveira" }, { - "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", "y" : 3, - "name" : "Dave Jacoby" + "drilldown" : "Dave Jacoby" }, { - "name" : "David Ferrone", + "drilldown" : "David Ferrone", "y" : 2, - "drilldown" : "David Ferrone" + "name" : "David Ferrone" }, { - "drilldown" : "E. Choroba", + "name" : "E. Choroba", "y" : 2, - "name" : "E. Choroba" + "drilldown" : "E. Choroba" }, { - "drilldown" : "Feng Chang", "y" : 2, + "drilldown" : "Feng Chang", "name" : "Feng Chang" }, { - "drilldown" : "James Smith", "name" : "James Smith", + "drilldown" : "James Smith", "y" : 3 }, { + "name" : "Laurent Rosenfeld", + "y" : 5, + "drilldown" : "Laurent Rosenfeld" + }, + { + "drilldown" : "Luca Ferrari", "y" : 8, - "name" : "Luca Ferrari", - "drilldown" : "Luca Ferrari" + "name" : "Luca Ferrari" }, { + "drilldown" : "Mark Anderson", "y" : 2, - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson" + "name" : "Mark Anderson" }, { + "y" : 2, "drilldown" : "Niels van Dijke", - "name" : "Niels van Dijke", - "y" : 2 + "name" : "Niels van Dijke" }, { "y" : 3, - "name" : "Peter Campbell Smith", - "drilldown" : "Peter Campbell Smith" + "drilldown" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith" + }, + { + "y" : 2, + "drilldown" : "Pip Stuart", + "name" : "Pip Stuart" }, { - "drilldown" : "Robbie Hatley", "name" : "Robbie Hatley", + "drilldown" : "Robbie Hatley", "y" : 2 }, { - "name" : "Roger Bell_West", + "name" : "Robert DiCicco", + "drilldown" : "Robert DiCicco", + "y" : 1 + }, + { "y" : 4, - "drilldown" : "Roger Bell_West" + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West" + }, + { + "name" : "Stephen G. Lynn", + "y" : 5, + "drilldown" : "Stephen G. Lynn" }, { - "drilldown" : "Thomas Kohler", "name" : "Thomas Kohler", - "y" : 3 + "y" : 3, + "drilldown" : "Thomas Kohler" }, { "name" : "Ulrich Rieke", @@ -102,13 +104,42 @@ "drilldown" : "Ulrich Rieke" }, { - "y" : 3, "name" : "W. Luis Mochan", - "drilldown" : "W. Luis Mochan" + "drilldown" : "W. Luis Mochan", + "y" : 3 } - ] + ], + "name" : "The Weekly Challenge - 196" } ], + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "tooltip" : { + "followPointer" : 1, + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
" + }, + "chart" : { + "type" : "column" + }, + "title" : { + "text" : "The Weekly Challenge - 196" + }, + "xAxis" : { + "type" : "category" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + } + } + }, "drilldown" : { "series" : [ { @@ -122,8 +153,8 @@ 2 ] ], - "name" : "Athanasius", - "id" : "Athanasius" + "id" : "Athanasius", + "name" : "Athanasius" }, { "data" : [ @@ -142,8 +173,8 @@ 2 ] ], - "name" : "Carlos Oliveira", - "id" : "Carlos Oliveira" + "id" : "Carlos Oliveira", + "name" : "Carlos Oliveira" }, { "id" : "Dave Jacoby", @@ -170,14 +201,14 @@ "id" : "David Ferrone" }, { - "id" : "E. Choroba", - "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "E. Choroba", + "id" : "E. Choroba" }, { "data" : [ @@ -190,13 +221,31 @@ "id" : "Feng Chang" }, { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], "id" : "James Smith", - "name" : "James Smith", + "name" : "James Smith" + }, + { + "id" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", "data" : [ [ "Perl", 2 ], + [ + "Raku", + 2 + ], [ "Blog", 1 @@ -214,8 +263,8 @@ 6 ] ], - "id" : "Luca Ferrari", - "name" : "Luca Ferrari" + "name" : "Luca Ferrari", + "id" : "Luca Ferrari" }, { "id" : "Mark Anderson", @@ -234,8 +283,8 @@ 2 ] ], - "name" : "Niels van Dijke", - "id" : "Niels van Dijke" + "id" : "Niels van Dijke", + "name" : "Niels van Dijke" }, { "data" : [ @@ -251,6 +300,16 @@ "name" : "Peter Campbell Smith", "id" : "Peter Campbell Smith" }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Pip Stuart", + "name" : "Pip Stuart" + }, { "data" : [ [ @@ -261,6 +320,16 @@ "id" : "Robbie Hatley", "name" : "Robbie Hatley" }, + { + "name" : "Robert DiCicco", + "id" : "Robert DiCicco", + "data" : [ + [ + "Raku", + 1 + ] + ] + }, { "data" : [ [ @@ -281,13 +350,31 @@ "Perl", 2 ], + [ + "Raku", + 2 + ], [ "Blog", 1 ] ], + "id" : "Stephen G. Lynn", + "name" : "Stephen G. Lynn" + }, + { + "name" : "Thomas Kohler", "id" : "Thomas Kohler", - "name" : "Thomas Kohler" + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ] }, { "data" : [ @@ -319,21 +406,10 @@ } ] }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "title" : { - "text" : "The Weekly Challenge - 196" + "subtitle" : { + "text" : "[Champions: 21] Last updated at 2022-12-23 09:08:36 GMT" }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } + "legend" : { + "enabled" : 0 } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index abdcd45936..86221ad59e 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,63 +1,63 @@ { - "tooltip" : { - "pointFormat" : "{point.y:.0f}" - }, - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - } - } - }, - "legend" : { - "enabled" : "false" - }, - "subtitle" : { - "text" : "Last updated at 2022-12-22 11:23:26 GMT" - }, "yAxis" : { - "min" : 0, "title" : { "text" : null - } + }, + "min" : 0 }, "series" : [ { "data" : [ [ "Blog", - 3128 + 3130 ], [ "Perl", - 9626 + 9632 ], [ "Raku", - 5769 + 5774 ] ], "dataLabels" : { - "rotation" : -90, - "align" : "right", - "y" : 10, "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" }, "enabled" : "true", + "y" : 10, + "align" : "right", "color" : "#FFFFFF", + "rotation" : -90, "format" : "{point.y:.0f}" }, "name" : "Contributions" } ], - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2022]" + "tooltip" : { + "pointFormat" : "{point.y:.0f}" }, "chart" : { "type" : "column" + }, + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2022]" + }, + "xAxis" : { + "labels" : { + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + } + }, + "type" : "category" + }, + "subtitle" : { + "text" : "Last updated at 2022-12-23 09:08:36 GMT" + }, + "legend" : { + "enabled" : "false" } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index e9ea03e3c1..3d74c4cbd4 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,3597 +1,43 @@ { - "xAxis" : { - "type" : "category" - }, - "tooltip" : { - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "followPointer" : "true", - "headerFormat" : "" - }, "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2022-12-22 11:23:27 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2022-12-23 09:08:36 GMT" }, "legend" : { "enabled" : "false" }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } - }, - "chart" : { - "type" : "column" - }, - "title" : { - "text" : "The Weekly Challenge Language" - }, - "drilldown" : { - "series" : [ - { - "id" : "001", - "name" : "001", - "data" : [ - [ - "Perl", - 103 - ], - [ - "Raku", - 47 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 79 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 10 - ] - ], - "name" : "002", - "id" : "002" - }, - { - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "name" : "003", - "id" : "003" - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "id" : "004", - "name" : "004" - }, - { - "name" : "005", - "id" : "005", - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "006", - "id" : "006", - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 18 - ], - [ - "Blog", - 7 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 32 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "007", - "id" : "007" - }, - { - "name" : "008", - "id" : "008", - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 13 - ] - ], - "id" : "009", - "name" : "009" - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ], - "id" : "010", - "name" : "010" - }, - { - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 10 - ] - ], - "name" : "011", - "id" : "011" - }, - { - "id" : "012", - "name" : "012", - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "013", - "name" : "013", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 55 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ], - "name" : "014", - "id" : "014" - }, - { - "id" : "015", - "name" : "015", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "name" : "016", - "id" : "016", - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "id" : "017", - "name" : "017", - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ], - "name" : "018", - "id" : "018" - }, - { - "name" : "019", - "id" : "019", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 51 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 13 - ] - ], - "id" : "020", - "name" : "020" - }, - { - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ], - "name" : "021", - "id" : "021" - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 10 - ] - ], - "name" : "022", - "id" : "022" - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 12 - ] - ], - "id" : "023", - "name" : "023" - }, - { - "data" : [ - [ - "Perl", - 38 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 11 - ] - ], - "name" : "024", - "id" : "024" - }, - { - "data" : [ - [ - "Perl", - 28 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 12 - ] - ], - "name" : "025", - "id" : "025" - }, - { - "name" : "026", - "id" : "026", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "027", - "name" : "027", - "data" : [ - [ - "Perl", - 31 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "name" : "028", - "id" : "028", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "name" : "029", - "id" : "029", - "data" : [ - [ - "Perl", - 42 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "name" : "030", - "id" : "030", - "data" : [ - [ - "Perl", - 76 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "id" : "031", - "name" : "031", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ] - }, - { - "id" : "032", - "name" : "032", - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "033", - "id" : "033", - "data" : [ - [ - "Perl", - 64 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 10 - ] - ] - }, - { - "name" : "034", - "id" : "034", - "data" : [ - [ - "Perl", - 32 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 9 - ] - ], - "name" : "035", - "id" : "035" - }, - { - "name" : "036", - "id" : "036", - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 22 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 36 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 9 - ] - ], - "name" : "037", - "id" : "037" - }, - { - "id" : "038", - "name" : "038", - "data" : [ - [ - "Perl", - 34 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 31 - ], - [ - "Raku", - 21 - ], - [ - "Blog", - 12 - ] - ], - "id" : "039", - "name" : "039" - }, - { - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 10 - ] - ], - "name" : "040", - "id" : "040" - }, - { - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 9 - ] - ], - "id" : "041", - "name" : "041" - }, - { - "id" : "042", - "name" : "042", - "data" : [ - [ - "Perl", - 49 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 24 - ], - [ - "Blog", - 11 - ] - ], - "id" : "043", - "name" : "043" - }, - { - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 11 - ] - ], - "id" : "044", - "name" : "044" - }, - { - "id" : "045", - "name" : "045", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 10 - ] - ], - "name" : "046", - "id" : "046" - }, - { - "data" : [ - [ - "Perl", - 45 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 10 - ] - ], - "name" : "047", - "id" : "047" - }, - { - "data" : [ - [ - "Perl", - 61 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 12 - ] - ], - "name" : "048", - "id" : "048" - }, - { - "id" : "049", - "name" : "049", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "id" : "050", - "name" : "050", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 12 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 48 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 11 - ] - ], - "name" : "051", - "id" : "051" - }, - { - "id" : "052", - "name" : "052", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 41 - ], - [ - "Blog", - 15 - ] - ], - "name" : "053", - "id" : "053" - }, - { - "id" : "054", - "name" : "054", - "data" : [ - [ - "Perl", - 47 - ], - [ - "Raku", - 40 - ], - [ - "Blog", - 18 - ] - ] - }, - { - "name" : "055", - "id" : "055", - "data" : [ - [ - "Perl", - 43 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "name" : "056", - "id" : "056", - "data" : [ - [ - "Perl", - 49 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "name" : "057", - "id" : "057", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 23 - ], - [ - "Blog", - 13 - ] - ], - "name" : "058", - "id" : "058" - }, - { - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 16 - ] - ], - "id" : "059", - "name" : "059" - }, - { - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 16 - ] - ], - "name" : "060", - "id" : "060" - }, - { - "id" : "061", - "name" : "061", - "data" : [ - [ - "Perl", - 39 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "id" : "062", - "name" : "062", - "data" : [ - [ - "Perl", - 30 - ], - [ - "Raku", - 19 - ], - [ - "Blog", - 11 - ] - ] - }, - { - "id" : "063", - "name" : "063", - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 37 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 16 - ] - ], - "name" : "064", - "id" : "064" - }, - { - "data" : [ - [ - "Perl", - 34 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 15 - ] - ], - "id" : "065", - "name" : "065" - }, - { - "name" : "066", - "id" : "066", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 40 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 18 - ] - ], - "id" : "067", - "name" : "067" - }, - { - "id" : "068", - "name" : "068", - "data" : [ - [ - "Perl", - 35 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 13 - ] - ] - }, - { - "name" : "069", - "id" : "069", - "data" : [ - [ - "Perl", - 41 - ], - [ - "Raku", - 28 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "name" : "070", - "id" : "070", - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "id" : "071", - "name" : "071", - "data" : [ - [ - "Perl", - 33 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 42 - ], - [ - "Blog", - 19 - ] - ], - "id" : "072", - "name" : "072" - }, - { - "name" : "073", - "id" : "073", - "data" : [ - [ - "Perl", - 55 - ], - [ - "Raku", - 40 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "id" : "074", - "name" : "074", - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 39 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "name" : "075", - "id" : "075", - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 53 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 16 - ] - ], - "id" : "076", - "name" : "076" - }, - { - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 14 - ] - ], - "name" : "077", - "id" : "077" - }, - { - "id" : "078", - "name" : "078", - "data" : [ - [ - "Perl", - 68 - ], - [ - "Raku", - 41 - ], - [ - "Blog", - 18 - ] - ] - }, - { - "name" : "079", - "id" : "079", - "data" : [ - [ - "Perl", - 68 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "name" : "080", - "id" : "080", - "data" : [ - [ - "Perl", - 75 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "id" : "081", - "name" : "081", - "data" : [ - [ - "Perl", - 65 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "name" : "082", - "id" : "082", - "data" : [ - [ - "Perl", - 62 - ], - [ - "Raku", - 35 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "name" : "083", - "id" : "083", - "data" : [ - [ - "Perl", - 73 - ], - [ - "Raku", - 38 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 71 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 12 - ] - ], - "id" : "084", - "name" : "084" - }, - { - "id" : "085", - "name" : "085", - "data" : [ - [ - "Perl", - 64 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 18 - ] - ] - }, - { - "id" : "086", - "name" : "086", - "data" : [ - [ - "Perl", - 58 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 15 - ] - ] - }, - { - "name" : "087", - "id" : "087", - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 31 - ], - [ - "Blog", - 14 - ] - ] - }, - { - "id" : "088", - "name" : "088", - "data" : [ - [ - "Perl", - 65 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 20 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 34 - ], - [ - "Blog", - 20 - ] - ], - "name" : "089", - "id" : "089" - }, - { - "id" : "090", - "name" : "090", - "data" : [ - [ - "Perl", - 57 - ], - [ - "Raku", - 39 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 36 - ], - [ - "Blog", - 16 - ] - ], - "name" : "091", - "id" : "091" - }, - { - "id" : "092", - "name" : "092", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 16 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 46 - ], - [ - "Raku", - 25 - ], - [ - "Blog", - 16 - ] - ], - "name" : "093", - "id" : "093" - }, - { - "id" : "094", - "name" : "094", - "data" : [ - [ - "Perl", - 44 - ], - [ - "Raku", - 26 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 33 - ], - [ - "Blog", - 19 - ] - ], - "name" : "095", - "id" : "095" - }, - { - "name" : "096", - "id" : "096", - "data" : [ - [ - "Perl", - 52 - ], - [ - "Raku", - 37 - ], - [ - "Blog", - 19 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 63 - ], - [ - "Raku", - 29 - ], - [ - "Blog", - 19 - ] - ], - "id" : "097", - "name" : "097" - }, - { - "id" : "098", - "name" : "098", - "data" : [ - [ - "Perl", - 59 - ], - [ - "Raku", - 32 - ], - [ - "Blog", - 17 - ] - ] - }, - { - "data" : [ - [ - "Perl", - 56 - ], - [ - "Raku", - 27 - ], - [ - "Blog", - 14 - ] - ], - "name" : "099", - "id" : "099" - }, - { - "data" : [ - [ - "Perl", - 69 - ], - [ - "Raku", - 30 - ], - [ - "Blog", - 21 - ] - ], - "name" : "100", - "id" : "100" - }, - { - "d