From c495343d52dae9415a6ea527beaf33bbed923bad Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 21 Sep 2020 01:06:25 +0100 Subject: - Added solutions by Colin Crain. --- challenge-078/colin-crain/perl/ch-1.pl | 64 ++ challenge-078/colin-crain/perl/ch-2.pl | 119 +++ challenge-078/colin-crain/raku/ch-1.raku | 51 ++ challenge-078/colin-crain/raku/ch-2.raku | 103 +++ stats/pwc-current.json | 654 ++++++++--------- stats/pwc-language-breakdown-summary.json | 68 +- stats/pwc-language-breakdown.json | 1120 ++++++++++++++--------------- stats/pwc-leaders.json | 768 ++++++++++---------- stats/pwc-summary-1-30.json | 40 +- stats/pwc-summary-121-150.json | 96 +-- stats/pwc-summary-151-180.json | 114 +-- stats/pwc-summary-181-210.json | 62 +- stats/pwc-summary-31-60.json | 98 +-- stats/pwc-summary-61-90.json | 102 +-- stats/pwc-summary-91-120.json | 88 +-- stats/pwc-summary.json | 46 +- 16 files changed, 1969 insertions(+), 1624 deletions(-) create mode 100644 challenge-078/colin-crain/perl/ch-1.pl create mode 100644 challenge-078/colin-crain/perl/ch-2.pl create mode 100644 challenge-078/colin-crain/raku/ch-1.raku create mode 100644 challenge-078/colin-crain/raku/ch-2.raku diff --git a/challenge-078/colin-crain/perl/ch-1.pl b/challenge-078/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..a36ff8652d --- /dev/null +++ b/challenge-078/colin-crain/perl/ch-1.pl @@ -0,0 +1,64 @@ +#! /opt/local/bin/perl +# +# follow_the_leader.pl +# +# TASK #1 › Leader Element +# Submitted by: Mohammad S Anwar +# You are given an array @A containing distinct integers. +# +# Write a script to find all leader elements in the array @A. Print (0) +# if none found. +# +# An element is leader if it is greater than all the elements to its +# right side. +# +# Example 1: +# Input: @A = (9, 10, 7, 5, 6, 1) +# Output: (10, 7, 6, 1) +# Example 2: +# Input: @A = (3, 4, 5) +# Output: (5) +# +# method: +# working from the end, the tail element is by definition the +# "leader" of none. From there a running local maximum is +# established among elements already seen and the focus moves one +# element to the left. If the element is greater than the local +# maximum, it is the leader and becomes the new maximum. It is also +# unshifted onto the front of the output array. +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN: + +my @input = @ARGV; +@input = (9, 10, 7, 5, 6, 1) if scalar @ARGV == 0; +say "input: (", (join ', ', @input), ")"; + + +my @output = my ($max) = (pop @input); + +while (@input) { + my $ele = pop @input; + if ($ele > $max) { + $max = $ele; + unshift @output, $ele; + } +} +say "output: (", (join ', ', @output), ")"; + + + + + + + +## ## ## ## ## SUBS: diff --git a/challenge-078/colin-crain/perl/ch-2.pl b/challenge-078/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..cd07ef3383 --- /dev/null +++ b/challenge-078/colin-crain/perl/ch-2.pl @@ -0,0 +1,119 @@ +#! /opt/local/bin/perl +# +# swing_to_the_left.pl +# +# TASK #2 › Left Rotation +# Submitted by: Mohammad S Anwar +# You are given array @A containing positive numbers and @B containing +# one or more indices from the array @A. +# +# Write a script to left rotate @A so that the number at the first index +# of @B becomes the first element in the array. Similary, left rotate @A +# again so that the number at the second index of @B becomes the first +# element in the array. +# +# Example 1: +# Input: +# @A = (10 20 30 40 50) +# @B = (3 4) +# +# Explanation: +# a) We left rotate the 3rd index element (40) in the @A to make it 0th +# index member in the array. +# [40 50 10 20 30] +# +# b) We left rotate the 4th index element (50) in the @A to make it 0th +# index member in the array. +# [50 10 20 30 40] +# +# Output: +# [40 50 10 20 30] +# [50 10 20 30 40] +# +# Example 2: +# +# Input: +# @A = (7 4 2 6 3) +# @B = (1 3 4) +# +# Explanation: +# a) We left rotate the 1st index element (4) in the @A to make it +# 0th index member in the array. +# [4 2 6 3 7] +# +# b) We left rotate the 3rd index element (6) in the @A to make it +# 0th index member in the array. +# [6 3 7 4 2] +# +# c) We left rotate the 4th index element (3) in the @A to make it +# 0th index member in the array. +# [3 7 4 2 6] +# +# Output: +# [4 2 6 3 7] +# [6 3 7 5 2] +# [3 7 4 2 6] + +# ---------------------------------------- +# +# method: +# I'm not sure "rotate" is exactly the right word for whats being +# asked for here, but rather what we are being asked to do is to +# produce the output as though the array had been rotated. The +# distinction is important as we need to retain the integrety of the +# original array and perform multiple transformations for output, as +# the transformations are not consecutivly applied in a churning +# fashion, but rather different applications to the atarting +# sequence. +# +# The new sequences rearrange the elements such that the the tail of +# the array, starting at the indicated element, becomes the head, +# and the head, up to the break, becomes the tail. This can be done +# easily with array slices. +# +# As removing the head element and placing it on the end is the act +# of a left rotation, this is the same action moving a block of +# elements simultaniously rather than individual elements +# sequentially. In this sense it satisfies both the function and the +# spirit of the challenge. +# +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +## ## ## ## ## MAIN: + + +my @array = (7, 4, 2, 6, 3); +my @idxs = (1, 3, 0, 4); +my @output; +my $end = scalar @array - 1; + +for my $idx (@idxs) { + $idx == 0 and do {(push @output, \@array); next}; + my @shifted = @array[$idx..$end, 0..$idx-1]; + push @output, \@shifted ; +} + +say "array: (", (join ', ', @array), ")"; +say "index list: (", (join ', ', @idxs ), ")\n"; + +say "[", (join ' ', $_->@*), "]" for @output; + + + + + + + + + + +## ## ## ## ## SUBS: diff --git a/challenge-078/colin-crain/raku/ch-1.raku b/challenge-078/colin-crain/raku/ch-1.raku new file mode 100644 index 0000000000..e528ed3e06 --- /dev/null +++ b/challenge-078/colin-crain/raku/ch-1.raku @@ -0,0 +1,51 @@ +#!/usr/bin/env perl6 +# +# +# follow-the-leader.raku +# +# TASK #1 › Leader Element +# Submitted by: Mohammad S Anwar +# You are given an array @A containing distinct integers. +# +# Write a script to find all leader elements in the array @A. Print (0) +# if none found. +# +# An element is leader if it is greater than all the elements to its +# right side. +# +# Example 1: +# Input: @A = (9, 10, 7, 5, 6, 1) +# Output: (10, 7, 6, 1) +# Example 2: +# Input: @A = (3, 4, 5) +# Output: (5) +# +# method: working from the end, the tail element is by definition the +# "leader" of none. From there a running local maximum is +# established among elements already seen and the focus moves one +# element to the left. If the element is greater than the local +# maximum, it is the leader and becomes the new maximum. Leaders are +# propgated to the output array, which needs to be revered back to +# +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (*@input) ; + +## in +@input.elems == 0 and @input = 9, 10, 7, 5, 6, 1; + +## work +my $max = -Inf; +my @output = @input.reverse + .map( { $_ > $max ?? ($max = $_) !! Nil } ) + .grep( *.defined ); +@output .= reverse; + +## out +say " input: ", @input; +say "output: ", @output; + diff --git a/challenge-078/colin-crain/raku/ch-2.raku b/challenge-078/colin-crain/raku/ch-2.raku new file mode 100644 index 0000000000..c491571918 --- /dev/null +++ b/challenge-078/colin-crain/raku/ch-2.raku @@ -0,0 +1,103 @@ +#!/usr/bin/env perl6 +# +# +# swing_to_the_left.raku +# +# TASK #2 › Left Rotation +# Submitted by: Mohammad S Anwar +# You are given array @A containing positive numbers and @B containing +# one or more indices from the array @A. +# +# Write a script to left rotate @A so that the number at the first index +# of @B becomes the first element in the array. Similary, left rotate @A +# again so that the number at the second index of @B becomes the first +# element in the array. +# +# Example 1: +# Input: +# @A = (10 20 30 40 50) +# @B = (3 4) +# +# Explanation: +# a) We left rotate the 3rd index element (40) in the @A to make it 0th +# index member in the array. +# [40 50 10 20 30] +# +# b) We left rotate the 4th index element (50) in the @A to make it 0th +# index member in the array. +# [50 10 20 30 40] +# +# Output: +# [40 50 10 20 30] +# [50 10 20 30 40] +# +# Example 2: +# +# Input: +# @A = (7 4 2 6 3) +# @B = (1 3 4) +# +# Explanation: +# a) We left rotate the 1st index element (4) in the @A to make it +# 0th index member in the array. +# [4 2 6 3 7] +# +# b) We left rotate the 3rd index element (6) in the @A to make it +# 0th index member in the array. +# [6 3 7 4 2] +# +# c) We left rotate the 4th index element (3) in the @A to make it +# 0th index member in the array. +# [3 7 4 2 6] +# +# Output: +# [4 2 6 3 7] +# [6 3 7 5 2] +# [3 7 4 2 6] +# +# ---------------------------------------- +# +# method: +# I'm not sure "rotate" is exactly the right word for whats being +# asked for here, as rather what we are being asked to do is to +# produce the output as though the array had been rotated. The +# distinction is important as we need to retain the integrity of the +# original array and perform multiple transformations for output, as +# the transformations are not consecutivly applied in a churning +# fashion, but rather different applications to the starting +# sequence. +# +# The new sequences rearrange the elements such that the the tail of +# the array, starting at the indicated element, becomes the head, +# and the head, up to the break, becomes the tail. This can be done +# easily with array slices. +# +# As removing the head element and placing it on the end is the act +# of a left rotation, this is the same action moving a block of +# elements simultaniously rather than individual elements +# sequentially. In this sense it satisfies both the function and the +# spirit of the challenge. +# +# 2020 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN (Str $arraystr = "7,4,2,6,3", Str $idxstr = "1,3,0,4") ; + +## in +my @array = $arraystr.split(','); +my @idxs = $idxstr.split(','); +my @output; + +## work +for @idxs -> $idx { + $idx == 0 and do { @output.push: @array; next }; + @output.push: @array[|($idx..@array.end), |^$idx]; +} + +## out +say "array: ", @array; +say "index list: ", @idxs; +say "output:\n"; +.say for @output; diff --git a/stats/pwc-current.json b/stats/pwc-current.json index cbcd39d713..a5f076e506 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,20 +1,263 @@ { + "chart" : { + "type" : "column" + }, "title" : { "text" : "Perl Weekly Challenge - 078" }, + "subtitle" : { + "text" : "[Champions: 41] Last updated at 2020-09-21 00:06:10 GMT" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 + } + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "series" : [ + { + "colorByPoint" : 1, + "name" : "Perl Weekly Challenge - 078", + "data" : [ + { + "drilldown" : "Abigail", + "name" : "Abigail", + "y" : 2 + }, + { + "y" : 3, + "name" : "Adam Russell", + "drilldown" : "Adam Russell" + }, + { + "drilldown" : "Alexander Pankoff", + "name" : "Alexander Pankoff", + "y" : 2 + }, + { + "name" : "Andinus", + "y" : 4, + "drilldown" : "Andinus" + }, + { + "y" : 3, + "name" : "Andrew Shitov", + "drilldown" : "Andrew Shitov" + }, + { + "y" : 2, + "name" : "Anton Fedotov", + "drilldown" : "Anton Fedotov" + }, + { + "y" : 5, + "name" : "Arne Sommer", + "drilldown" : "Arne Sommer" + }, + { + "drilldown" : "Athanasius", + "name" : "Athanasius", + "y" : 4 + }, + { + "y" : 2, + "name" : "Bob Lied", + "drilldown" : "Bob Lied" + }, + { + "drilldown" : "Cheok-Yin Fung", + "y" : 2, + "name" : "Cheok-Yin Fung" + }, + { + "drilldown" : "Colin Crain", + "y" : 5, + "name" : "Colin Crain" + }, + { + "drilldown" : "Dave Cross", + "y" : 2, + "name" : "Dave Cross" + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 2 + }, + { + "drilldown" : "E. Choroba", + "y" : 2, + "name" : "E. Choroba" + }, + { + "y" : 4, + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti" + }, + { + "y" : 2, + "name" : "James Smith", + "drilldown" : "James Smith" + }, + { + "y" : 2, + "name" : "Jan Krnavek", + "drilldown" : "Jan Krnavek" + }, + { + "drilldown" : "Jason Messer", + "y" : 2, + "name" : "Jason Messer" + }, + { + "drilldown" : "Jorg Sommrey", + "y" : 2, + "name" : "Jorg Sommrey" + }, + { + "drilldown" : "Julio de Castro", + "y" : 4, + "name" : "Julio de Castro" + }, + { + "drilldown" : "Kang-min Liu", + "y" : 2, + "name" : "Kang-min Liu" + }, + { + "name" : "Laurent Rosenfeld", + "y" : 5, + "drilldown" : "Laurent Rosenfeld" + }, + { + "drilldown" : "Lubos Kolouch", + "y" : 2, + "name" : "Lubos Kolouch" + }, + { + "drilldown" : "Mark Anderson", + "name" : "Mark Anderson", + "y" : 2 + }, + { + "drilldown" : "Markus Holzer", + "name" : "Markus Holzer", + "y" : 4 + }, + { + "drilldown" : "Mohammad S Anwar", + "name" : "Mohammad S Anwar", + "y" : 4 + }, + { + "drilldown" : "Myoungjin Jeon", + "name" : "Myoungjin Jeon", + "y" : 4 + }, + { + "y" : 2, + "name" : "Niels van Dijke", + "drilldown" : "Niels van Dijke" + }, + { + "name" : "Nuno Vieira", + "y" : 2, + "drilldown" : "Nuno Vieira" + }, + { + "drilldown" : "Pete Houston", + "y" : 2, + "name" : "Pete Houston" + }, + { + "name" : "Richard Park", + "y" : 2, + "drilldown" : "Richard Park" + }, + { + "drilldown" : "Roger Bell_West", + "y" : 5, + "name" : "Roger Bell_West" + }, + { + "name" : "Shahed Nooshmand", + "y" : 3, + "drilldown" : "Shahed Nooshmand" + }, + { + "name" : "Shawn Wagner", + "y" : 2, + "drilldown" : "Shawn Wagner" + }, + { + "name" : "Simon Green", + "y" : 3, + "drilldown" : "Simon Green" + }, + { + "y" : 2, + "name" : "Simon Proctor", + "drilldown" : "Simon Proctor" + }, + { + "drilldown" : "Steven Wilson", + "y" : 1, + "name" : "Steven Wilson" + }, + { + "y" : 4, + "name" : "Ulrich Rieke", + "drilldown" : "Ulrich Rieke" + }, + { + "drilldown" : "Vinod Kumar K", + "name" : "Vinod Kumar K", + "y" : 1 + }, + { + "name" : "Walt Mankowski", + "y" : 3, + "drilldown" : "Walt Mankowski" + }, + { + "y" : 2, + "name" : "Wanderdoc", + "drilldown" : "Wanderdoc" + } + ] + } + ], + "xAxis" : { + "type" : "category" + }, + "tooltip" : { + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
", + "followPointer" : 1 + }, "drilldown" : { "series" : [ { - "name" : "Abigail", "id" : "Abigail", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Abigail" }, { + "id" : "Adam Russell", + "name" : "Adam Russell", "data" : [ [ "Perl", @@ -24,23 +267,21 @@ "Blog", 1 ] - ], - "name" : "Adam Russell", - "id" : "Adam Russell" + ] }, { + "name" : "Alexander Pankoff", "data" : [ [ "Perl", 2 ] ], - "name" : "Alexander Pankoff", "id" : "Alexander Pankoff" }, { - "name" : "Andinus", "id" : "Andinus", + "name" : "Andinus", "data" : [ [ "Perl", @@ -53,8 +294,6 @@ ] }, { - "id" : "Andrew Shitov", - "name" : "Andrew Shitov", "data" : [ [ "Raku", @@ -64,11 +303,13 @@ "Blog", 1 ] - ] + ], + "name" : "Andrew Shitov", + "id" : "Andrew Shitov" }, { - "name" : "Anton Fedotov", "id" : "Anton Fedotov", + "name" : "Anton Fedotov", "data" : [ [ "Perl", @@ -77,6 +318,7 @@ ] }, { + "name" : "Arne Sommer", "data" : [ [ "Perl", @@ -91,10 +333,11 @@ 1 ] ], - "name" : "Arne Sommer", "id" : "Arne Sommer" }, { + "id" : "Athanasius", + "name" : "Athanasius", "data" : [ [ "Perl", @@ -104,38 +347,44 @@ "Raku", 2 ] - ], - "id" : "Athanasius", - "name" : "Athanasius" + ] }, { "id" : "Bob Lied", - "name" : "Bob Lied", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Bob Lied" }, { - "id" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Cheok-Yin Fung", + "id" : "Cheok-Yin Fung" }, { + "id" : "Colin Crain", "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], [ "Blog", 1 ] ], - "id" : "Colin Crain", "name" : "Colin Crain" }, { @@ -149,24 +398,24 @@ "id" : "Dave Cross" }, { + "name" : "Dave Jacoby", "data" : [ [ "Perl", 2 ] ], - "id" : "Dave Jacoby", - "name" : "Dave Jacoby" + "id" : "Dave Jacoby" }, { + "id" : "E. Choroba", + "name" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ], - "id" : "E. Choroba", - "name" : "E. Choroba" + ] }, { "id" : "Flavio Poletti", @@ -183,24 +432,24 @@ ] }, { + "id" : "James Smith", + "name" : "James Smith", "data" : [ [ "Perl", 2 ] - ], - "name" : "James Smith", - "id" : "James Smith" + ] }, { "name" : "Jan Krnavek", - "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Jan Krnavek" }, { "id" : "Jason Messer", @@ -213,8 +462,8 @@ ] }, { - "name" : "Jorg Sommrey", "id" : "Jorg Sommrey", + "name" : "Jorg Sommrey", "data" : [ [ "Perl", @@ -233,20 +482,22 @@ 2 ] ], - "id" : "Julio de Castro", - "name" : "Julio de Castro" + "name" : "Julio de Castro", + "id" : "Julio de Castro" }, { "name" : "Kang-min Liu", - "id" : "Kang-min Liu", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Kang-min Liu" }, { + "id" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -260,31 +511,31 @@ "Blog", 1 ] - ], - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld" + ] }, { + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] - ], - "name" : "Lubos Kolouch", - "id" : "Lubos Kolouch" + ] }, { + "id" : "Mark Anderson", + "name" : "Mark Anderson", "data" : [ [ "Raku", 2 ] - ], - "name" : "Mark Anderson", - "id" : "Mark Anderson" + ] }, { + "id" : "Markus Holzer", + "name" : "Markus Holzer", "data" : [ [ "Perl", @@ -294,11 +545,10 @@ "Raku", 2 ] - ], - "id" : "Markus Holzer", - "name" : "Markus Holzer" + ] }, { + "name" : "Mohammad S Anwar", "data" : [ [ "Perl", @@ -309,10 +559,10 @@ 2 ] ], - "name" : "Mohammad S Anwar", "id" : "Mohammad S Anwar" }, { + "id" : "Myoungjin Jeon", "data" : [ [ "Perl", @@ -323,42 +573,41 @@ 2 ] ], - "id" : "Myoungjin Jeon", "name" : "Myoungjin Jeon" }, { + "id" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] ], - "id" : "Niels van Dijke", "name" : "Niels van Dijke" }, { - "id" : "Nuno Vieira", "name" : "Nuno Vieira", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Nuno Vieira" }, { + "id" : "Pete Houston", + "name" : "Pete Houston", "data" : [ [ "Perl", 2 ] - ], - "name" : "Pete Houston", - "id" : "Pete Houston" + ] }, { - "name" : "Richard Park", "id" : "Richard Park", + "name" : "Richard Park", "data" : [ [ "Raku", @@ -371,6 +620,8 @@ ] }, { + "id" : "Roger Bell_West", + "name" : "Roger Bell_West", "data" : [ [ "Perl", @@ -384,12 +635,9 @@ "Blog", 1 ] - ], - "name" : "Roger Bell_West", - "id" : "Roger Bell_West" + ] }, { - "name" : "Shahed Nooshmand", "id" : "Shahed Nooshmand", "data" : [ [ @@ -400,21 +648,20 @@ "Blog", 1 ] - ] + ], + "name" : "Shahed Nooshmand" }, { + "id" : "Shawn Wagner", + "name" : "Shawn Wagner", "data" : [ [ "Perl", 2 ] - ], - "id" : "Shawn Wagner", - "name" : "Shawn Wagner" + ] }, { - "id" : "Simon Green", - "name" : "Simon Green", "data" : [ [ "Perl", @@ -424,30 +671,31 @@ "Blog", 1 ] - ] + ], + "name" : "Simon Green", + "id" : "Simon Green" }, { - "name" : "Simon Proctor", - "id" : "Simon Proctor", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Simon Proctor", + "id" : "Simon Proctor" }, { - "name" : "Steven Wilson", "id" : "Steven Wilson", "data" : [ [ "Perl", 1 ] - ] + ], + "name" : "Steven Wilson" }, { - "id" : "Ulrich Rieke", "name" : "Ulrich Rieke", "data" : [ [ @@ -458,21 +706,20 @@ "Raku", 2 ] - ] + ], + "id" : "Ulrich Rieke" }, { + "name" : "Vinod Kumar K", "data" : [ [ "Perl", 1 ] ], - "name" : "Vinod Kumar K", "id" : "Vinod Kumar K" }, { - "id" : "Walt Mankowski", - "name" : "Walt Mankowski", "data" : [ [ "Perl", @@ -482,261 +729,22 @@ "Blog", 1 ] - ] + ], + "name" : "Walt Mankowski", + "id" : "Walt Mankowski" }, { + "id" : "Wanderdoc", + "name" : "Wanderdoc", "data" : [ [ "Perl", 2 ] - ], - "id" : "Wanderdoc", - "name" : "Wanderdoc" + ] } ] }, - "subtitle" : { - "text" : "[Champions: 41] Last updated at 2020-09-20 20:45:51 GMT" - }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "series" : [ - { - "colorByPoint" : 1, - "name" : "Perl Weekly Challenge - 078", - "data" : [ - { - "name" : "Abigail", - "y" : 2, - "drilldown" : "Abigail" - }, - { - "y" : 3, - "name" : "Adam Russell", - "drilldown" : "Adam Russell" - }, - { - "drilldown" : "Alexander Pankoff", - "name" : "Alexander Pankoff", - "y" : 2 - }, - { - "drilldown" : "Andinus", - "name" : "Andinus", - "y" : 4 - }, - { - "y" : 3, - "name" : "Andrew Shitov", - "drilldown" : "Andrew Shitov" - }, - { - "y" : 2, - "name" : "Anton Fedotov", - "drilldown" : "Anton Fedotov" - }, - { - "drilldown" : "Arne Sommer", - "name" : "Arne Sommer", - "y" : 5 - }, - { - "y" : 4, - "name" : "Athanasius", - "drilldown" : "Athanasius" - }, - { - "y" : 2, - "name" : "Bob Lied", - "drilldown" : "Bob Lied" - }, - { - "y" : 2, - "name" : "Cheok-Yin Fung", - "drilldown" : "Cheok-Yin Fung" - }, - { - "drilldown" : "Colin Crain", - "name" : "Colin Crain", - "y" : 1 - }, - { - "drilldown" : "Dave Cross", - "name" : "Dave Cross", - "y" : 2 - }, - { - "drilldown" : "Dave Jacoby", - "name" : "Dave Jacoby", - "y" : 2 - }, - { - "y" : 2, - "name" : "E. Choroba", - "drilldown" : "E. Choroba" - }, - { - "drilldown" : "Flavio Poletti", - "y" : 4, - "name" : "Flavio Poletti" - }, - { - "drilldown" : "James Smith", - "y" : 2, - "name" : "James Smith" - }, - { - "y" : 2, - "name" : "Jan Krnavek", - "drilldown" : "Jan Krnavek" - }, - { - "y" : 2, - "name" : "Jason Messer", - "drilldown" : "Jason Messer" - }, - { - "drilldown" : "Jorg Sommrey", - "name" : "Jorg Sommrey", - "y" : 2 - }, - { - "drilldown" : "Julio de Castro", - "y" : 4, - "name" : "Julio de Castro" - }, - { - "drilldown" : "Kang-min Liu", - "y" : 2, - "name" : "Kang-min Liu" - }, - { - "y" : 5, - "name" : "Laurent Rosenfeld", - "drilldown" : "Laurent Rosenfeld" - }, - { - "name" : "Lubos Kolouch", - "y" : 2, - "drilldown" : "Lubos Kolouch" - }, - { - "drilldown" : "Mark Anderson", - "y" : 2, - "name" : "Mark Anderson" - }, - { - "y" : 4, - "name" : "Markus Holzer", - "drilldown" : "Markus Holzer" - }, - { - "drilldown" : "Mohammad S Anwar", - "name" : "Mohammad S Anwar", - "y" : 4 - }, - { - "name" : "Myoungjin Jeon", - "y" : 4, - "drilldown" : "Myoungjin Jeon" - }, - { - "name" : "Niels van Dijke", - "y" : 2, - "drilldown" : "Niels van Dijke" - }, - { - "drilldown" : "Nuno Vieira", - "y" : 2, - "name" : "Nuno Vieira" - }, - { - "drilldown" : "Pete Houston", - "name" : "Pete Houston", - "y" : 2 - }, - { - "y" : 2, - "name" : "Richard Park", - "drilldown" : "Richard Park" - }, - { - "drilldown" : "Roger Bell_West", - "y" : 5, - "name" : "Roger Bell_West" - }, - { - "name" : "Shahed Nooshmand", - "y" : 3, - "drilldown" : "Shahed Nooshmand" - }, - { - "drilldown" : "Shawn Wagner", - "y" : 2, - "name" : "Shawn Wagner" - }, - { - "name" : "Simon Green", - "y" : 3, - "drilldown" : "Simon Green" - }, - { - "drilldown" : "Simon Proctor", - "name" : "Simon Proctor", - "y" : 2 - }, - { - "drilldown" : "Steven Wilson", - "y" : 1, - "name" : "Steven Wilson" - }, - { - "drilldown" : "Ulrich Rieke", - "name" : "Ulrich Rieke", - "y" : 4 - }, - { - "drilldown" : "Vinod Kumar K", - "y" : 1, - "name" : "Vinod Kumar K" - }, - { - "drilldown" : "Walt Mankowski", - "y" : 3, - "name" : "Walt Mankowski" - }, - { - "drilldown" : "Wanderdoc", - "name" : "Wanderdoc", - "y" : 2 - } - ] - } - ], - "chart" : { - "type" : "column" - }, - "tooltip" : { - "pointFormat" : "{point.name}: {point.y:f}
", - "headerFormat" : "{series.name}
", - "followPointer" : 1 - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } - } - }, - "xAxis" : { - "type" : "category" - }, "legend" : { "enabled" : 0 } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index b8ab93ab4b..f7c8e51229 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,28 +1,21 @@ { + "title" : { + "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" + }, + "subtitle" : { + "text" : "Last updated at 2020-09-21 00:06:09 GMT" + }, "chart" : { "type" : "column" }, - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 + "legend" : { + "enabled" : "false" + }, + "tooltip" : { + "pointFormat" : "{point.y:.0f}" }, "series" : [ { - "dataLabels" : { - "align" : "right", - "enabled" : "true", - "rotation" : -90, - "color" : "#FFFFFF", - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - }, - "y" : 10, - "format" : "{point.y:.0f}" - }, - "name" : "Contributions", "data" : [ [ "Blog", @@ -30,34 +23,41 @@ ], [ "Perl", - 3315 + 3317 ], [ "Raku", - 2153 + 2155 ] - ] + ], + "name" : "Contributions", + "dataLabels" : { + "enabled" : "true", + "color" : "#FFFFFF", + "format" : "{point.y:.0f}", + "y" : 10, + "align" : "right", + "rotation" : -90, + "style" : { + "fontSize" : "13px", + "fontFamily" : "Verdana, sans-serif" + } + } } ], - "subtitle" : { - "text" : "Last updated at 2020-09-20 20:45:51 GMT" - }, - "title" : { - "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" - }, "xAxis" : { - "type" : "category", "labels" : { "style" : { "fontFamily" : "Verdana, sans-serif", "fontSize" : "13px" } - } - }, - "legend" : { - "enabled" : "false" + }, + "type" : "category" }, - "tooltip" : { - "pointFormat" : "{point.y:.0f}" + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index a3a17429fb..387cd51b90 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,426 +1,18 @@ { - "legend" : { - "enabled" : "false" - }, - "xAxis" : { - "type" : "category" - }, "plotOptions" : { "series" : { - "borderWidth" : 0, "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } + "enabled" : 1, + "format" : "{point.y}" + }, + "borderWidth" : 0 } }, - "tooltip" : { - "headerFormat" : "", - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "followPointer" : "true" + "title" : { + "text" : "Perl Weekly Challenge Language" }, - "series" : [ - { - "name" : "Perl Weekly Challenge Languages", - "colorByPoint" : "true", - "data" : [ - { - "drilldown" : "001", - "name" : "#001", - "y" : 142 - }, - { - "y" : 111, - "name" : "#002", - "drilldown" : "002" - }, - { - "y" : 71, - "name" : "#003", - "drilldown" : "003" - }, - { - "y" : 91, - "name" : "#004", - "drilldown" : "004" - }, - { - "drilldown" : "005", - "name" : "#005", - "y" : 72 - }, - { - "drilldown" : "006", - "y" : 52, - "name" : "#006" - }, - { - "name" : "#007", - "y" : 59, - "drilldown" : "007" - }, - { - "name" : "#008", - "y" : 72, - "drilldown" : "008" - }, - { - "drilldown" : "009", - "name" : "#009", - "y" : 70 - }, - { - "drilldown" : "010", - "name" : "#010", - "y" : 60 - }, - { - "name" : "#011", - "y" : 79, - "drilldown" : "011" - }, - { - "drilldown" : "012", - "name" : "#012", - "y" : 83 - }, - { - "name" : "#013", - "y" : 78, - "drilldown" : "013" - }, - { - "drilldown" : "014", - "name" : "#014", - "y" : 96 - }, - { - "drilldown" : "015", - "name" : "#015", - "y" : 93 - }, - { - "drilldown" : "016", - "y" : 66, - "name" : "#016" - }, - { - "drilldown" : "017", - "y" : 79, - "name" : "#017" - }, - { - "name" : "#018", - "y" : 76, - "drilldown" : "018" - }, - { - "y" : 97, - "name" : "#019", - "drilldown" : "019" - }, - { - "name" : "#020", - "y" : 95, - "drilldown" : "020" - }, - { - "drilldown" : "021", - "name" : "#021", - "y" : 67 - }, - { - "drilldown" : "022", - "name" : "#022", - "y" : 63 - }, - { - "y" : 91, - "name" : "#023", - "drilldown" : "023" - }, - { - "name" : "#024", - "y" : 70, - "drilldown" : "024" - }, - { - "name" : "#025", - "y" : 55, - "drilldown" : "025" - }, - { - "y" : 70, - "name" : "#026", - "drilldown" : "026" - }, - { - "drilldown" : "027", - "name" : "#027", - "y" : 58 - }, - { - "drilldown" : "028", - "y" : 78, - "name" : "#028" - }, - { - "name" : "#029", - "y" : 77, - "drilldown" : "029" - }, - { - "drilldown" : "030", - "y" : 115, - "name" : "#030" - }, - { - "name" : "#031", - "y" : 87, - "drilldown" : "031" - }, - { - "drilldown" : "032", - "y" : 92, - "name" : "#032" - }, - { - "name" : "#033", - "y" : 108, - "drilldown" : "033" - }, - { - "drilldown" : "034", - "y" : 62, - "name" : "#034" - }, - { - "name" : "#035", - "y" : 62, - "drilldown" : "035" - }, - { - "drilldown" : "036", - "name" : "#036", - "y" : 66 - }, - { - "drilldown" : "037", - "y" : 65, - "name" : "#037" - }, - { - "name" : "#038", - "y" : 65, - "drilldown" : "038" - }, - { - "drilldown" : "039", - "name" : "#039", - "y" : 60 - }, - { - "drilldown" : "040", - "y" : 71, - "name" : "#040" - }, - { - "drilldown" : "041", - "y" : 74, - "name" : "#041" - }, - { - "drilldown" : "042", - "name" : "#042", - "y" : 88 - }, - { - "drilldown" : "043", - "y" : 66, - "name" : "#043" - }, - { - "drilldown" : "044", - "name" : "#044", - "y" : 82 - }, - { - "y" : 94, - "name" : "#045", - "drilldown" : "045" - }, - { - "y" : 85, - "name" : "#046", - "drilldown" : "046" - }, - { - "drilldown" : "047", - "name" : "#047", - "y" : 82 - }, - { - "drilldown" : "048", - "y" : 106, - "name" : "#048" - }, - { - "drilldown" : "049", - "name" : "#049", - "y" : 85 - }, - { - "y" : 96, - "name" : "#050", - "drilldown" : "050" - }, - { - "y" : 87, - "name" : "#051", - "drilldown" : "051" - }, - { - "y" : 89, - "name" : "#052", - "drilldown" : "052" - }, - { - "drilldown" : "053", - "y" : 99, - "name" : "#053" - }, - { - "y" : 101, - "name" : "#054", - "drilldown" : "054" - }, - { - "y" : 86, - "name" : "#055", - "drilldown" : "055" - }, - { - "drilldown" : "056", - "y" : 93, - "name" : "#056" - }, - { - "drilldown" : "057", - "y" : 78, - "name" : "#057" - }, - { - "drilldown" : "058", - "y" : 67, - "name" : "#058" - }, - { - "y" : 87, - "name" : "#059", - "drilldown" : "059" - }, - { - "y" : 83, - "name" : "#060", - "drilldown" : "060" - }, - { - "drilldown" : "061", - "name" : "#061", - "y" : 79 - }, - { - "drilldown" : "062", - "name" : "#062", - "y" : 54 - }, - { - "name" : "#063", - "y" : 87, - "drilldown" : "063" - }, - { - "drilldown" : "064", - "name" : "#064", - "y" : 78 - }, - { - "drilldown" : "065", - "y" : 71, - "name" : "#065" - }, - { - "y" : 82, - "name" : "#066", - "drilldown" : "066" - }, - { - "name" : "#067", - "y" : 88, - "drilldown" : "067" - }, - { - "y" : 73, - "name" : "#068", - "drilldown" : "068" - }, - { - "drilldown" : "069", - "y" : 81, - "name" : "#069" - }, - { - "drilldown" : "070", - "y" : 91, - "name" : "#070" - }, - { - "y" : 76, - "name" : "#071", - "drilldown" : "071" - }, - { - "drilldown" : "072", - "name" : "#072", - "y" : 110 - }, - { - "name" : "#073", - "y" : 108, - "drilldown" : "073" - }, - { - "y" : 113, - "name" : "#074", - "drilldown" : "074" - }, - { - "name" : "#075", - "y" : 111, - "drilldown" : "075" - }, - { - "drilldown" : "076", - "name" : "#076", - "y" : 91 - }, - { - "drilldown" : "077", - "name" : "#077", - "y" : 94 - }, - { - "drilldown" : "078", - "y" : 109, - "name" : "#078" - } - ] - } - ], - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2020-09-21 00:06:10 GMT" }, "chart" : { "type" : "column" @@ -428,6 +20,7 @@ "drilldown" : { "series" : [ { + "id" : "001", "data" : [ [ "Perl", @@ -442,12 +35,10 @@ 11 ] ], - "name" : "001", - "id" : "001" + "name" : "001" }, { "id" : "002", - "name" : "002", "data" : [ [ "Perl", @@ -461,9 +52,11 @@ "Blog", 10 ] - ] + ], + "name" : "002" }, { + "id" : "003", "data" : [ [ "Perl", @@ -478,10 +71,10 @@ 9 ] ], - "name" : "003", - "id" : "003" + "name" : "003" }, { + "id" : "004", "data" : [ [ "Perl", @@ -496,12 +89,10 @@ 10 ] ], - "name" : "004", - "id" : "004" + "name" : "004" }, { "name" : "005", - "id" : "005", "data" : [ [ "Perl", @@ -515,9 +106,11 @@ "Blog", 12 ] - ] + ], + "id" : "005" }, { + "name" : "006", "data" : [ [ "Perl", @@ -532,10 +125,11 @@ 7 ] ], - "id" : "006", - "name" : "006" + "id" : "006" }, { + "id" : "007", + "name" : "007", "data" : [ [ "Perl", @@ -549,9 +143,7 @@ "Blog", 10 ] - ], - "name" : "007", - "id" : "007" + ] }, { "id" : "008", @@ -573,7 +165,6 @@ }, { "id" : "009", - "name" : "009", "data" : [ [ "Perl", @@ -587,11 +178,11 @@ "Blog", 13 ] - ] + ], + "name" : "009" }, { "id" : "010", - "name" : "010", "data" : [ [ "Perl", @@ -605,9 +196,12 @@ "Blog", 11 ] - ] + ], + "name" : "010" }, { + "id" : "011", + "name" : "011", "data" : [ [ "Perl", @@ -621,11 +215,10 @@ "Blog", 10 ] - ], - "name" : "011", - "id" : "011" + ] }, { + "name" : "012", "data" : [ [ "Perl", @@ -640,12 +233,10 @@ 11 ] ], - "name" : "012", "id" : "012" }, { "id" : "013", - "name" : "013", "data" : [ [ "Perl", @@ -659,9 +250,11 @@ "Blog", 13 ] - ] + ], + "name" : "013" }, { + "id" : "014", "data" : [ [ "Perl", @@ -676,12 +269,10 @@ 15 ] ], - "id" : "014", "name" : "014" }, { "name" : "015", - "id" : "015", "data" : [ [ "Perl", @@ -695,11 +286,11 @@ "Blog", 15 ] - ] + ], + "id" : "015" }, { "id" : "016", - "name" : "016", "data" : [ [ "Perl", @@ -713,11 +304,10 @@ "Blog", 12 ] - ] + ], + "name" : "016" }, { - "id" : "017", - "name" : "017", "data" : [ [ "Perl", @@ -731,9 +321,12 @@ "Blog", 12 ] - ] + ], + "name" : "017", + "id" : "017" }, { + "id" : "018", "data" : [ [ "Perl", @@ -748,10 +341,10 @@ 14 ] ], - "id" : "018", "name" : "018" }, { + "name" : "019", "data" : [ [ "Perl", @@ -766,12 +359,11 @@ 13 ] ], - "name" : "019", "id" : "019" }, { - "name" : "020", "id" : "020", + "name" : "020", "data" : [ [ "Perl", @@ -788,8 +380,6 @@ ] }, { - "id" : "021", - "name" : "021", "data" : [ [ "Perl", @@ -803,7 +393,9 @@ "Blog", 10 ] - ] + ], + "name" : "021", + "id" : "021" }, { "id" : "022", @@ -824,6 +416,7 @@ ] }, { + "name" : "023", "data" : [ [ "Perl", @@ -838,12 +431,10 @@ 12 ] ], - "name" : "023", "id" : "023" }, { "name" : "024", - "id" : "024", "data" : [ [ "Perl", @@ -857,11 +448,11 @@ "Blog", 11 ] - ] + ], + "id" : "024" }, { "name" : "025", - "id" : "025", "data" : [ [ "Perl", @@ -875,9 +466,11 @@ "Blog", 12 ] - ] + ], + "id" : "025" }, { + "name" : "026", "data" : [ [ "Perl", @@ -892,11 +485,9 @@ 10 ] ], - "name" : "026", "id" : "026" }, { - "id" : "027", "name" : "027", "data" : [ [ @@ -911,7 +502,8 @@ "Blog", 9 ] - ] + ], + "id" : "027" }, { "id" : "028", @@ -932,8 +524,6 @@ ] }, { - "id" : "029", - "name" : "029", "data" : [ [ "Perl", @@ -947,11 +537,13 @@ "Blog", 12 ] - ] + ], + "name" : "029", + "id" : "029" }, { - "name" : "030", "id" : "030", + "name" : "030", "data" : [ [ "Perl", @@ -969,7 +561,6 @@ }, { "name" : "031", - "id" : "031", "data" : [ [ "Perl", @@ -983,9 +574,12 @@ "Blog", 9 ] - ] + ], + "id" : "031" }, { + "id" : "032", + "name" : "032", "data" : [ [ "Perl", @@ -999,13 +593,11 @@ "Blog", 10 ] - ], - "id" : "032", - "name" : "032" + ] }, { - "name" : "033", "id" : "033", + "name" : "033", "data" : [ [ "Perl", @@ -1022,6 +614,7 @@ ] }, { + "id" : "034", "data" : [ [ "Perl", @@ -1036,8 +629,7 @@ 11 ] ], - "name" : "034", - "id" : "034" + "name" : "034" }, { "data" : [ @@ -1058,7 +650,6 @@ "id" : "035" }, { - "name" : "036", "id" : "036", "data" : [ [ @@ -1073,11 +664,10 @@ "Blog", 11 ] - ] + ], + "name" : "036" }, { - "name" : "037", - "id" : "037", "data" : [ [ "Perl", @@ -1091,11 +681,11 @@ "Blog", 9 ] - ] + ], + "name" : "037", + "id" : "037" }, { - "id" : "038", - "name" : "038", "data" : [ [ "Perl", @@ -1109,9 +699,12 @@ "Blog", 12 ] - ] + ], + "name" : "038", + "id" : "038" }, { + "id" : "039", "data" : [ [ "Perl", @@ -1126,10 +719,10 @@ 12 ] ], - "id" : "039", "name" : "039" }, { + "name" : "040", "data" : [ [ "Perl", @@ -1144,12 +737,11 @@ 10 ] ], - "id" : "040", - "name" : "040" + "id" : "040" }, { - "name" : "041", "id" : "041", + "name" : "041", "data" : [ [ "Perl", @@ -1166,8 +758,6 @@ ] }, { - "name" : "042", - "id" : "042", "data" : [ [ "Perl", @@ -1181,7 +771,9 @@ "Blog", 11 ] - ] + ], + "name" : "042", + "id" : "042" }, { "id" : "043", @@ -1202,8 +794,6 @@ ] }, { - "id" : "044", - "name" : "044", "data" : [ [ "Perl", @@ -1217,7 +807,9 @@ "Blog", 11 ] - ] + ], + "name" : "044", + "id" : "044" }, { "data" : [ @@ -1239,7 +831,6 @@ }, { "id" : "046", - "name" : "046", "data" : [ [ "Perl", @@ -1253,10 +844,10 @@ "Blog", 10 ] - ] + ], + "name" : "046" }, { - "name" : "047", "id" : "047", "data" : [ [ @@ -1271,11 +862,11 @@ "Blog", 10 ] - ] + ], + "name" : "047" }, { "name" : "048", - "id" : "048", "data" : [ [ "Perl", @@ -1289,9 +880,11 @@ "Blog", 12 ] - ] + ], + "id" : "048" }, { + "name" : "049", "data" : [ [ "Perl", @@ -1306,12 +899,10 @@ 12 ] ], - "name" : "049", "id" : "049" }, { "id" : "050", - "name" : "050", "data" : [ [ "Perl", @@ -1325,11 +916,11 @@ "Blog", 12 ] - ] + ], + "name" : "050" }, { "name" : "051", - "id" : "051", "data" : [