From db6e266767957e5d14fb5c6e50fa501bf0854470 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 7 Mar 2021 23:12:08 +0000 Subject: - Added solutions by Colin Crain. --- challenge-102/colin-crain/perl/ch-1.pl | 255 ++++++ challenge-102/colin-crain/perl/ch-2.pl | 132 +++ stats/pwc-current.json | 457 +++++----- stats/pwc-language-breakdown-summary.json | 62 +- stats/pwc-language-breakdown.json | 1390 ++++++++++++++--------------- stats/pwc-leaders.json | 368 ++++---- stats/pwc-summary-1-30.json | 114 +-- stats/pwc-summary-121-150.json | 110 +-- stats/pwc-summary-151-180.json | 122 +-- stats/pwc-summary-181-210.json | 40 +- stats/pwc-summary-211-240.json | 54 +- stats/pwc-summary-31-60.json | 128 +-- stats/pwc-summary-61-90.json | 104 +-- stats/pwc-summary-91-120.json | 118 +-- stats/pwc-summary.json | 504 +++++------ 15 files changed, 2180 insertions(+), 1778 deletions(-) create mode 100644 challenge-102/colin-crain/perl/ch-1.pl create mode 100644 challenge-102/colin-crain/perl/ch-2.pl diff --git a/challenge-102/colin-crain/perl/ch-1.pl b/challenge-102/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..7b3c6eb6ea --- /dev/null +++ b/challenge-102/colin-crain/perl/ch-1.pl @@ -0,0 +1,255 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# rare-numbers.pl +# +# TASK #1 › Rare Numbers +# Submitted by: Mohammad S Anwar +# You are given a positive integer $N. +# +# Write a script to generate all Rare numbers of size $N if exists. +# Please checkout the page for more information about it. +# +# Examples +# (a) 2 digits: 65 +# (b) 6 digits: 621770 +# (c) 9 digits: 281089082 +# +# +# +# method: +# Let's start by making the broad statement that fast as Perl may be, +# using an interpreted language for this sort of massive raw computation +# is just foolish. There is a reason Mr. Gupta chose FORTRAN I assume, for +# same reason it persists to this day among certain scientific +# data-crunching adherents: it's fast — very, very fast — at numerical +# processing. +# +# Perl, in all the joy of expressiveness it brings to the table, is just +# ill-suited. Of course it can be used to attack the problem, but will +# always run up against certain walls when processing 10 billion numbers. +# +# The biggest optimization is limiting the first digit to 2,4,6, or 8, and +# advancing the iterator one at the outer order of magnitude rather than a +# simple `next`. This cuts the number of iterations 55% immediately at the +# cost of the performing one `substr` on the test value. +# +# After this, however, it becomes a trade-off on doing more expensive +# `substr` operations, poking about at extracting individual digits, and +# the associated conditionals to determine whether to jump to the next +# iteation, against the rather expensivve `sqrt` operation to check for +# perfect squares. +# +# Needless to say the gains in jumping over a hundred million values are +# quite a bit more obvious than short-circuiting out to the next +# incremental candidate. + +# Unfortunately the further "optimizations" given are not as effective, +# ultimately becoming a tradeoff between the iterations and expesive +# computation saved versus the added ovverhead of implementation, +# leading to diminishing returns. +# +# The next set though, of examining the relationships between the first +# and last digits, yielded quite good results, reducing the number of +# squareroot operations about 5 times further. At this point the +# iterations for a 4-digit value have been reduced from 8999 to start +# (numbers between 1000 and 9999), to 4399 after filtering for even lead +# digits, to about 800 after skipping impossible combinations of first +# and last digits. + +# Simply short-circuiting out of an invalid combination of digits did +# not, however, produce much gain in computation time. Using `next` did +# not change the actual number of iterations, only avoiding further +# intensive computation within a given loop. The `substr` operations to +# gather the relevant digits and the the added complexity ate in to any +# effort saved, resulting in only a samll tim ereduction. +# +# The potential gains were not truly realized until I managed to not +# just short-circut the loop but reconfigure things entirely to skip +# whole blocks of values in the incrementation phase, essentially +# unrolling the large pattern of allowed values over each set of +# permissable combinations. This required a new counter for the tens +# place that allowed proper rollovers between the sets. +# +# This was pretty tedious work, but paid off in a nearly fourfold +# increase in execution speed. +# +# Further implementation of the second and second-to-last digits was not +# nearly as effective. In the end the reduction was minimal and all the +# unrolled incrementation was, well tedious no longer covered it. +# +# It felt a lot like assembler, to be honest, so rather than attempt to +# refine it further it was clear there would be no more orders of +# magnitude available to trim ahead of us. I threw in the towel at +# 10-digit numbers, taking 509 seconds to find the 2 rare numbers there. +# +# +# +# +# The abandoned next level of complexity. Unrolling these loops could +# be done, but would be maddening, and the only way to see any gains. +# +# If A == 8 then Z == 2, 3, 7 or 8: +# if Z = 2 then: +# B + tens == 9, +# if Z = 3 then: +# B - tens == 7 when B > tens +# B - tens == -3 when B < tens +# B can never be equal to tens, +# if Z == 7 then: +# B + tens == 11 when B > 1 +# B + tens == 1 when B < 1, +# if Z == 8 then B == tens. +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; + +my $then = time; + +my $order = shift @ARGV || 9; + +my $test = 10**($order-1); +my $end = 10**$order; +my @out; + +my $tens = 0; + +while ($test < $end) { + + my $A = substr $test, 0, 1; + if ($A % 2 == 1) { + $test += 10**($order-1); + next; + } + + my $Z = substr $test, -1, 1; + + ## 2s + if ($A == 2 and $Z == 0) { + $test += 2; + } + elsif ($A == 2 and $Z > 2) { + if ($tens == 9) { + $test += 7; + $tens = 0; + next; + } + $test += 9; + $tens++; + } + + ## 4s + if ($A == 4 and $Z > 0) { + if ($tens == 9) { + $test += 9; + $tens = 0; + next; + } + $test += 9; + $tens++; + } + + ## 6s + if ($A == 6 and $Z == 1) { + $test += 4; + } + elsif ($A == 6 and $Z == 6) { + if ($tens == 9) { + $test += 4; + $tens = 0; + next; + } + $test += 4; + $tens++; + } + + ## 8s + if ($A == 8 and $Z == 0) { + $test += 2; + } + elsif ($A == 8 and $Z == 4) { + $test += 3; + } + elsif ($A == 8 and $Z == 9) { + if ($tens == 9) { + $test += 1; + $tens = 0; + next; + } + $test +=3; + $tens++; + } + + +## the second and second-to-last optimizations, not yet unrolled: +## 333 seconds for order == 9 +# +# my $A = substr $test, 0, 1; +# $A % 2 == 1 and $test += 10**($order-1); +# +# my $B = substr $test, 1, 1; +# my $P = substr $test, -2, 1; +# my $Q = substr $test, -1, 1; +# +# if ($A == 2) { +# next if $Q != 2; +# next unless ($B - $P) % 2 == 0; +# } +# elsif ($A == 4) { +# next if $Q != 0; +# next unless abs(($B - $P) % 2) == 1; +# } +# elsif ($A == 6) { +# next unless ($Q == 0 or $Q == 5); +# } +# else { ## $A == 8 +# if ($Q == 2) { +# next unless $B + $P == 9; +# } +# elsif ($Q == 3) { +# next if $B == $P; +# if ( $B > $P ) { +# next unless $B - $P == 7; +# } +# next unless $B - $P == -3; +# } +# elsif ($Q == 7) { +# if ($B > 1) { +# next unless $B + $P == 11; +# } +# if ($B == 0) { +# next unless $P == 1; +# } +# } +# elsif ($Q == 8) { +# next unless $B == $P; +# } +# else { +# next; +# } +# } + + my $rev = reverse $test; + if ( $test == $rev + or $test - $rev < 0 + or int(sqrt($test-$rev))**2 != ($test-$rev) + or int(sqrt($test+$rev))**2 != ($test+$rev) ) { + $test++; + next; + } + + push @out, $test; + $test++; +} + +say $_ for @out; + +say "time: ", time - $then; + diff --git a/challenge-102/colin-crain/perl/ch-2.pl b/challenge-102/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..9a6e63c9eb --- /dev/null +++ b/challenge-102/colin-crain/perl/ch-2.pl @@ -0,0 +1,132 @@ +#! /opt/local/bin/perl +# +# puzzlehash.pl +# +# TASK #2 › Hash-counting String +# Submitted by: Stuart Little +# You are given a positive integer $N. +# +# Write a script to produce Hash-counting string of that length. +# +# The definition of a hash-counting string is as follows: +# +# - the string consists only of digits 0-9 and hashes, ‘#’ +# - there are no two consecutive hashes: ‘##’ does not appear in your +# string +# - the last character is a hash +# - the number immediately preceding each hash (if it exists) is the +# position of that hash in the string, with the position being counted +# up from 1 +# +# It can be shown that for every positive integer N there is exactly one such length-N string. +# +# Examples: +# (a) "#" is the counting string of length 1 +# (b) "2#" is the counting string of length 2 +# (c) "#3#" is the string of length 3 +# (d) "#3#5#7#10#" is the string of length 10 +# (e) "2#4#6#8#11#14#" is the string of length 14 + +# method: +# +# ok this one is outright weird. It seems to be simply an analytical +# puzzle rather than having any practical significance. So rather than +# research a solution I think I'll just attack it logically and see +# what happens. +# +# 1. The last character is a hash, and no two hashes can be placed +# successively, thus the character before the final hash is a digit, +# indicating the position of that hash. +# +# 2. The length of the string is the quantity being "counted" here. I +# think they kind of buried the lede on that one. No matter, it's +# still all there in the description. +# +# 3. Thus the last hash will be in position N, and the number +# preceeding will be N. +# +# 4. The character preceeding the number N can be any digit or a hash, +# but should it be a digit, it would have no significance. As such any +# digit would do, leading to the ability to construct 10 such stings +# with the various digits in this place. As we are told the string is +# unique, this is a contradiction, and thus the next character must be +# a hash. + +# 4.1 It is not explicitly defined as to whether all of the digits +# perceeding a given hash compose the number defining its position, +# for example a string starting with 104#, with only the 4 +# referencing the hash in the 4th position. In any case this case is +# moot considering the previous logic. Alternately should this be +# defined as true, that the number should be composed of all possible +# digits, then the other argument becomes moot, as the string must by +# necessity alternate numbers and hash marks functioning as +# separators. +# +# 4.2. I believe this line of reasoning is required to deduce the +# uniqueness of one string per length quality +# +# 5. Generalizing, the string is composed solely of alternating hashes +# and numbers, with the number preceeding each hash indicating the +# position of that hash. +# +# 6. The positions are 1-based, rather than 0-based indexes. +# +# So the algorithm is to start at the end of the string, placing a +# hash in the N-th position, counted starting at 1. We then +# concatenate the position of that hash to the string and count our +# length. If it is less than N, add a hash. If it was N-1 we are done, +# else we need to loop and add the numerical poistion of the +# last-placed hash to the front of the string. As we approach the +# front of our string, we are guarenteed that the position indicating +# numbers will become single-digit, so our last-placed character will +# either be a hash or a single digit 2 indicating the position of hash +# following in the second place. +# +# What a weird, fun little puzzle. + +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + +for (1..32) { + say sprintf "%2d -> %s", $_, get_hash_string( $_ ); +} + +sub get_hash_string ( $num ) { + my $str = ''; + + while ( my $pos = $num - length $str ) { + $str = '#' . $str; + return $str if $pos == 1; + $str = $pos . $str; + } + + return $str; +} + + + + + + + + + + + + + + +# use Test::More; +# +# is +# +# done_testing(); diff --git a/stats/pwc-current.json b/stats/pwc-current.json index c7bdbcd4a6..86f7fd79c7 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,174 +1,8 @@ { - "legend" : { - "enabled" : 0 - }, - "series" : [ - { - "name" : "Perl Weekly Challenge - 102", - "data" : [ - { - "drilldown" : "Aaron Smith", - "y" : 3, - "name" : "Aaron Smith" - }, - { - "name" : "Abigail", - "y" : 4, - "drilldown" : "Abigail" - }, - { - "name" : "Adam Russell", - "y" : 4, - "drilldown" : "Adam Russell" - }, - { - "y" : 1, - "name" : "Alexander Karelas", - "drilldown" : "Alexander Karelas" - }, - { - "y" : 5, - "name" : "Arne Sommer", - "drilldown" : "Arne Sommer" - }, - { - "y" : 4, - "name" : "Athanasius", - "drilldown" : "Athanasius" - }, - { - "name" : "Bob Lied", - "y" : 1, - "drilldown" : "Bob Lied" - }, - { - "drilldown" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung", - "y" : 2 - }, - { - "y" : 1, - "name" : "Cristina Heredia", - "drilldown" : "Cristina Heredia" - }, - { - "y" : 3, - "name" : "Dave Jacoby", - "drilldown" : "Dave Jacoby" - }, - { - "drilldown" : "E. Choroba", - "y" : 2, - "name" : "E. Choroba" - }, - { - "drilldown" : "Flavio Poletti", - "y" : 4, - "name" : "Flavio Poletti" - }, - { - "name" : "Gustavo Chaves", - "y" : 2, - "drilldown" : "Gustavo Chaves" - }, - { - "drilldown" : "James Smith", - "y" : 3, - "name" : "James Smith" - }, - { - "drilldown" : "Jan Krnavek", - "name" : "Jan Krnavek", - "y" : 2 - }, - { - "name" : "Joan Mimosinnet", - "y" : 2, - "drilldown" : "Joan Mimosinnet" - }, - { - "drilldown" : "Jorg Sommrey", - "y" : 2, - "name" : "Jorg Sommrey" - }, - { - "drilldown" : "Lubos Kolouch", - "name" : "Lubos Kolouch", - "y" : 2 - }, - { - "y" : 1, - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson" - }, - { - "drilldown" : "Maxim Kolodyazhny", - "y" : 1, - "name" : "Maxim Kolodyazhny" - }, - { - "name" : "Niels van Dijke", - "y" : 2, - "drilldown" : "Niels van Dijke" - }, - { - "y" : 2, - "name" : "Paulo Custodio", - "drilldown" : "Paulo Custodio" - }, - { - "drilldown" : "Roger Bell_West", - "y" : 5, - "name" : "Roger Bell_West" - }, - { - "y" : 3, - "name" : "Simon Green", - "drilldown" : "Simon Green" - }, - { - "drilldown" : "Simon Proctor", - "y" : 2, - "name" : "Simon Proctor" - }, - { - "drilldown" : "Stuart Little", - "y" : 4, - "name" : "Stuart Little" - }, - { - "drilldown" : "Ulrich Rieke", - "y" : 4, - "name" : "Ulrich Rieke" - }, - { - "name" : "W. Luis Mochan", - "y" : 3, - "drilldown" : "W. Luis Mochan" - }, - { - "drilldown" : "Wanderdoc", - "y" : 1, - "name" : "Wanderdoc" - }, - { - "name" : "Yet Ebreo", - "y" : 1, - "drilldown" : "Yet Ebreo" - } - ], - "colorByPoint" : 1 - } - ], - "subtitle" : { - "text" : "[Champions: 30] Last updated at 2021-03-07 22:06:23 GMT" - }, - "xAxis" : { - "type" : "category" - }, "drilldown" : { "series" : [ { + "name" : "Aaron Smith", "id" : "Aaron Smith", "data" : [ [ @@ -179,12 +13,10 @@ "Blog", 1 ] - ], - "name" : "Aaron Smith" + ] }, { "id" : "Abigail", - "name" : "Abigail", "data" : [ [ "Perl", @@ -194,7 +26,8 @@ "Blog", 2 ] - ] + ], + "name" : "Abigail" }, { "name" : "Adam Russell", @@ -211,17 +44,17 @@ "id" : "Adam Russell" }, { - "id" : "Alexander Karelas", - "name" : "Alexander Karelas", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Alexander Karelas", + "name" : "Alexander Karelas" }, { - "id" : "Arne Sommer", + "name" : "Arne Sommer", "data" : [ [ "Perl", @@ -236,11 +69,10 @@ 1 ] ], - "name" : "Arne Sommer" + "id" : "Arne Sommer" }, { "id" : "Athanasius", - "name" : "Athanasius", "data" : [ [ "Perl", @@ -250,37 +82,48 @@ "Raku", 2 ] - ] + ], + "name" : "Athanasius" }, { - "id" : "Bob Lied", "data" : [ [ "Perl", 1 ] ], + "id" : "Bob Lied", "name" : "Bob Lied" }, { - "name" : "Cheok-Yin Fung", + "id" : "Cheok-Yin Fung", + "data" : [ + [ + "Perl", + 2 + ] + ], + "name" : "Cheok-Yin Fung" + }, + { + "id" : "Colin Crain", "data" : [ [ "Perl", 2 ] ], - "id" : "Cheok-Yin Fung" + "name" : "Colin Crain" }, { - "id" : "Cristina Heredia", "name" : "Cristina Heredia", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Cristina Heredia" }, { "id" : "Dave Jacoby", @@ -307,7 +150,6 @@ "name" : "E. Choroba" }, { - "name" : "Flavio Poletti", "data" : [ [ "Perl", @@ -318,7 +160,8 @@ 2 ] ], - "id" : "Flavio Poletti" + "id" : "Flavio Poletti", + "name" : "Flavio Poletti" }, { "id" : "Gustavo Chaves", @@ -341,58 +184,58 @@ 1 ] ], - "name" : "James Smith", - "id" : "James Smith" + "id" : "James Smith", + "name" : "James Smith" }, { - "id" : "Jan Krnavek", "name" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ] + ], + "id" : "Jan Krnavek" }, { + "name" : "Joan Mimosinnet", "id" : "Joan Mimosinnet", "data" : [ [ "Raku", 2 ] - ], - "name" : "Joan Mimosinnet" + ] }, { - "id" : "Jorg Sommrey", "name" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Jorg Sommrey" }, { - "id" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] ], + "id" : "Lubos Kolouch", "name" : "Lubos Kolouch" }, { "id" : "Mark Anderson", - "name" : "Mark Anderson", "data" : [ [ "Raku", 1 ] - ] + ], + "name" : "Mark Anderson" }, { "id" : "Maxim Kolodyazhny", @@ -405,14 +248,14 @@ "name" : "Maxim Kolodyazhny" }, { - "id" : "Niels van Dijke", - "name" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Niels van Dijke", + "name" : "Niels van Dijke" }, { "id" : "Paulo Custodio", @@ -426,6 +269,7 @@ }, { "name" : "Roger Bell_West", + "id" : "Roger Bell_West", "data" : [ [ "Perl", @@ -439,11 +283,9 @@ "Blog", 1 ] - ], - "id" : "Roger Bell_West" + ] }, { - "name" : "Simon Green", "data" : [ [ "Perl", @@ -454,17 +296,18 @@ 1 ] ], - "id" : "Simon Green" + "id" : "Simon Green", + "name" : "Simon Green" }, { "id" : "Simon Proctor", - "name" : "Simon Proctor", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Simon Proctor" }, { "data" : [ @@ -477,10 +320,12 @@ 2 ] ], - "name" : "Stuart Little", - "id" : "Stuart Little" + "id" : "Stuart Little", + "name" : "Stuart Little" }, { + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -490,12 +335,10 @@ "Raku", 2 ] - ], - "name" : "Ulrich Rieke", - "id" : "Ulrich Rieke" + ] }, { - "name" : "W. Luis Mochan", + "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -506,34 +349,32 @@ 1 ] ], - "id" : "W. Luis Mochan" + "name" : "W. Luis Mochan" }, { - "id" : "Wanderdoc", "data" : [ [ "Perl", 1 ] ], + "id" : "Wanderdoc", "name" : "Wanderdoc" }, { - "name" : "Yet Ebreo", "data" : [ [ "Perl", 1 ] ], - "id" : "Yet Ebreo" + "id" : "Yet Ebreo", + "name" : "Yet Ebreo" } ] }, - "tooltip" : { - "pointFormat" : "{point.name}: {point.y:f}
", - "followPointer" : 1, - "headerFormat" : "{series.name}
" + "xAxis" : { + "type" : "category" }, "chart" : { "type" : "column" @@ -543,14 +384,188 @@ "text" : "Total Solutions" } }, + "legend" : { + "enabled" : 0 + }, + "subtitle" : { + "text" : "[Champions: 31] Last updated at 2021-03-07 23:11:51 GMT" + }, + "tooltip" : { + "followPointer" : 1, + "headerFormat" : "{series.name}
", + "pointFormat" : "{point.name}: {point.y:f}
" + }, "title" : { "text" : "Perl Weekly Challenge - 102" }, + "series" : [ + { + "name" : "Perl Weekly Challenge - 102", + "data" : [ + { + "y" : 3, + "drilldown" : "Aaron Smith", + "name" : "Aaron Smith" + }, + { + "y" : 4, + "name" : "Abigail", + "drilldown" : "Abigail" + }, + { + "y" : 4, + "name" : "Adam Russell", + "drilldown" : "Adam Russell" + }, + { + "name" : "Alexander Karelas", + "drilldown" : "Alexander Karelas", + "y" : 1 + }, + { + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer", + "y" : 5 + }, + { + "drilldown" : "Athanasius", + "name" : "Athanasius", + "y" : 4 + }, + { + "drilldown" : "Bob Lied", + "name" : "Bob Lied", + "y" : 1 + }, + { + "y" : 2, + "drilldown" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung" + }, + { + "drilldown" : "Colin Crain", + "name" : "Colin Crain", + "y" : 2 + }, + { + "drilldown" : "Cristina Heredia", + "name" : "Cristina Heredia", + "y" : 1 + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 3 + }, + { + "y" : 2, + "name" : "E. Choroba", + "drilldown" : "E. Choroba" + }, + { + "y" : 4, + "drilldown" : "Flavio Poletti", + "name" : "Flavio Poletti" + }, + { + "name" : "Gustavo Chaves", + "drilldown" : "Gustavo Chaves", + "y" : 2 + }, + { + "drilldown" : "James Smith", + "name" : "James Smith", + "y" : 3 + }, + { + "name" : "Jan Krnavek", + "drilldown" : "Jan Krnavek", + "y" : 2 + }, + { + "drilldown" : "Joan Mimosinnet", + "name" : "Joan Mimosinnet", + "y" : 2 + }, + { + "y" : 2, + "drilldown" : "Jorg Sommrey", + "name" : "Jorg Sommrey" + }, + { + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch", + "y" : 2 + }, + { + "name" : "Mark Anderson", + "drilldown" : "Mark Anderson", + "y" : 1 + }, + { + "y" : 1, + "name" : "Maxim Kolodyazhny", + "drilldown" : "Maxim Kolodyazhny" + }, + { + "name" : "Niels van Dijke", + "drilldown" : "Niels van Dijke", + "y" : 2 + }, + { + "drilldown" : "Paulo Custodio", + "name" : "Paulo Custodio", + "y" : 2 + }, + { + "y" : 5, + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West" + }, + { + "name" : "Simon Green", + "drilldown" : "Simon Green", + "y" : 3 + }, + { + "name" : "Simon Proctor", + "drilldown" : "Simon Proctor", + "y" : 2 + }, + { + "drilldown" : "Stuart Little", + "name" : "Stuart Little", + "y" : 4 + }, + { + "y" : 4, + "drilldown" : "Ulrich Rieke", + "name" : "Ulrich Rieke" + }, + { + "drilldown" : "W. Luis Mochan", + "name" : "W. Luis Mochan", + "y" : 3 + }, + { + "name" : "Wanderdoc", + "drilldown" : "Wanderdoc", + "y" : 1 + }, + { + "y" : 1, + "name" : "Yet Ebreo", + "drilldown" : "Yet Ebreo" + } + ], + "colorByPoint" : 1 + } + ], "plotOptions" : { "series" : { "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" + "format" : "{point.y}", + "enabled" : 1 }, "borderWidth" : 0 } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index bdc8a94cfa..daf19084f8 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,12 +1,6 @@ { - "chart" : { - "type" : "column" - }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null - } + "subtitle" : { + "text" : "Last updated at 2021-03-07 23:11:51 GMT" }, "tooltip" : { "pointFormat" : "{point.y:.0f}" @@ -14,36 +8,21 @@ "title" : { "text" : "Perl Weekly Challenge Contributions [2019 - 2020]" }, - "xAxis" : { - "type" : "category", - "labels" : { - "style" : { - "fontFamily" : "Verdana, sans-serif", - "fontSize" : "13px" - } - } - }, - "subtitle" : { - "text" : "Last updated at 2021-03-07 22:06:23 GMT" - }, - "legend" : { - "enabled" : "false" - }, "series" : [ { - "name" : "Contributions", "dataLabels" : { - "y" : 10, "align" : "right", - "rotation" : -90, - "format" : "{point.y:.0f}", "style" : { "fontSize" : "13px", "fontFamily" : "Verdana, sans-serif" }, - "enabled" : "true", - "color" : "#FFFFFF" + "color" : "#FFFFFF", + "y" : 10, + "rotation" : -90, + "format" : "{point.y:.0f}", + "enabled" : "true" }, + "name" : "Contributions", "data" : [ [ "Blog", @@ -51,7 +30,7 @@ ], [ "Perl", - 4821 + 4823 ], [ "Raku", @@ -59,5 +38,26 @@ ] ] } - ] + ], + "xAxis" : { + "labels" : { + "style" : { + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" + } + }, + "type" : "category" + }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : null + } + }, + "legend" : { + "enabled" : "false" + }, + "chart" : { + "type" : "column" + } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 2e20b3b68b..912d78f103 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,540 +1,7 @@ { - "legend" : { - "enabled" : "false" - }, - "series" : [ - { - "colorByPoint" : "true", - "data" : [ - { - "drilldown" : "001", - "y" : 159, - "name" : "#001" - }, - { - "y" : 123, - "name" : "#002", - "drilldown" : "002" - }, - { - "drilldown" : "003", - "y" : 79, - "name" : "#003" - }, - { - "y" : 97, - "name" : "#004", - "drilldown" : "004" - }, - { - "name" : "#005", - "y" : 76, - "drilldown" : "005" - }, - { - "name" : "#006", - "y" : 56, - "drilldown" : "006" - }, - { - "y" : 63, - "name" : "#007", - "drilldown" : "007" - }, - { - "name" : "#008", - "y" : 76, - "drilldown" : "008" - }, - { - "drilldown" : "009", - "y" : 74, - "name" : "#009" - }, - { - "y" : 64, - "name" : "#010", - "drilldown" : "010" - }, - { - "drilldown" : "011", - "name" : "#011", - "y" : 83 - }, - { - "name" : "#012", - "y" : 87, - "drilldown" : "012" - }, - { - "drilldown" : "013", - "y" : 82, - "name" : "#013" - }, - { - "drilldown" : "014", - "name" : "#014", - "y" : 100 - }, - { - "drilldown" : "015", - "name" : "#015", - "y" : 97 - }, - { - "drilldown" : "016", - "y" : 70, - "name" : "#016" - }, - { - "drilldown" : "017", - "y" : 83, - "name" : "#017" - }, - { - "name" : "#018", - "y" : 80, - "drilldown" : "018" - }, - { - "drilldown" : "019", - "y" : 101, - "name" : "#019" - }, - { - "drilldown" : "020", - "y" : 99, - "name" : "#020" - }, - { - "drilldown" : "021", - "y" : 71, - "name" : "#021" - }, - { - "drilldown" : "022", - "y" : 67, - "name" : "#022" - }, - { - "name" : "#023", - "y" : 95, - "drilldown" : "023" - }, - { - "name" : "#024", - "y" : 74, - "drilldown" : "024" - }, - { - "name" : "#025", - "y" : 59, - "drilldown" : "025" - }, - { - "drilldown" : "026", - "name" : "#026", - "y" : 74 - }, - { - "name" : "#027", - "y" : 60, - "drilldown" : "027" - }, - { - "name" : "#028", - "y" : 80, - "drilldown" : "028" - }, - { - "name" : "#029", - "y" : 79, - "drilldown" : "029" - }, - { - "drilldown" : "030", - "name" : "#030", - "y" : 117 - }, - { - "drilldown" : "031", - "name" : "#031", - "y" : 89 - }, - { - "drilldown" : "032", - "name" : "#032", - "y" : 94 - }, - { - "y" : 110, - "name" : "#033", - "drilldown" : "033" - }, - { - "name" : "#034", - "y" : 64, - "drilldown" : "034" - }, - { - "name" : "#035", - "y" : 64, - "drilldown" : "035" - }, - { - "y" : 68, - "name" : "#036", - "drilldown" : "036" - }, - { - "drilldown" : "037", - "name" : "#037", - "y" : 67 - }, - { - "y" : 67, - "name" : "#038", - "drilldown" : "038" - }, - { - "drilldown" : "039", - "name" : "#039", - "y" : 62 - }, - { - "drilldown" : "040", - "name" : "#040", - "y" : 73 - }, - { - "drilldown" : "041", - "name" : "#041", - "y" : 76 - }, - { - "drilldown" : "042", - "name" : "#042", - "y" : 92 - }, - { - "drilldown" : "043", - "name" : "#043", - "y" : 68 - }, - { - "name" : "#044", - "y" : 85, - "drilldown" : "044" - }, - { - "name" : "#045", - "y" : 96, - "drilldown" : "045" - }, - { - "drilldown" : "046", - "name" : "#046", - "y" : 87 - }, - { - "name" : "#047", - "y" : 84, - "drilldown" : "047" - }, - { - "drilldown" : "048", - "name" : "#048", - "y" : 108 - }, - { - "y" : 89, - "name" : "#049", - "drilldown" : "049" - }, - { - "drilldown" : "050", - "name" : "#050", - "y" : 98 - }, - { - "drilldown" : "051", - "y" : 89, - "name" : "#051" - }, - { - "drilldown" : "052", - "name" : "#052", - "y" : 91 - }, - { - "y" : 101, - "name" : "#053", - "drilldown" : "053" - }, - { - "name" : "#054", - "y" : 103, - "drilldown" : "054" - }, - { - "drilldown" : "055", - "y" : 88, - "name" : "#055" - }, - { - "name" : "#056", - "y" : 95, - "drilldown" : "056" - }, - { - "name" : "#057", - "y" : 80, - "drilldown" : "057" - }, - { - "drilldown" : "058", - "name" : "#058", - "y" : 69 - }, - { - "drilldown" : "059", - "name" : "#059", - "y" : 89 - }, - { - "drilldown" : "060", - "y" : 85, - "name" : "#060" - }, - { - "drilldown" : "061", - "name" : "#061", - "y" : 81 - }, - { - "drilldown" : "062", - "name" : "#062", - "y" : 56 - }, - { - "name" : "#063", - "y" : 89, - "drilldown" : "063" - }, - { - "y" : 80, - "name" : "#064", - "drilldown" : "064" - }, - { - "name" : "#065", - "y" : 73, - "drilldown" : "065" - }, - { - "name" : "#066", - "y" : 84, - "drilldown" : "066" - }, - { - "drilldown" : "067", - "y" : 90, - "name" : "#067" - }, - { - "drilldown" : "068", - "y" : 75, - "name" : "#068" - }, - { - "drilldown" : "069", - "y" : 83, - "name" : "#069" - }, - { - "drilldown" : "070", - "y" : 93, - "name" : "#070" - }, - { - "drilldown" : "071", - "name" : "#071", - "y" : 78 - }, - { - "name" : "#072", - "y" : 112, - "drilldown" : "072" - }, - { - "drilldown" : "073", - "y" : 110, - "name" : "#073" - }, - { - "y" : 115, - "name" : "#074", - "drilldown" : "074" - }, - { - "drilldown" : "075", - "name" : "#075", - "y" : 113 - }, - { - "y" : 99, - "name" : "#076", - "drilldown" : "076" - }, - { - "name" : "#077", - "y" : 98, - "drilldown" : "077" - }, - { - "y" : 127, - "name" : "#078", - "drilldown" : "078" - }, - { - "drilldown" : "079", - "y" : 122, - "name" : "#079" - }, - { - "name" : "#080", - "y" : 127, - "drilldown" : "080" - }, - { - "drilldown" : "081", - "y" : 114, - "name" : "#081" - }, - { - "name" : "#082", - "y" : 114, - "drilldown" : "082" - }, - { - "name" : "#083", - "y" : 127, - "drilldown" : "083" - }, - { - "y" : 119, - "name" : "#084", - "drilldown" : "084" - }, - { - "drilldown" : "085", - "name" : "#085", - "y" : 114 - }, - { - "drilldown" : "086", - "y" : 104, - "name" : "#086" - }, - { - "name" : "#087", - "y" : 101, - "drilldown" : "087" - }, - { - "name" : "#088", - "y" : 121, - "drilldown" : "088" - }, - { - "name" : "#089", - "y" : 113, - "drilldown" : "089" - }, - { - "drilldown" : "090", - "y" : 113, - "name" : "#090" - }, - { - "drilldown" : "091", - "name" : "#091", - "y" : 108 - }, - { - "name" : "#092", - "y" : 98, - "drilldown" : "092" - }, - { - "drilldown" : "093", - "name" : "#093", - "y" : 87 - }, - { - "drilldown" : "094", - "name" : "#094", - "y" : 87 - }, - { - "y" : 108, - "name" : "#095", - "drilldown" : "095" - }, - { - "name" : "#096", - "y" : 108, - "drilldown" : "096" - }, - { - "name" : "#097", - "y" : 111, - "drilldown" : "097" - }, - { - "drilldown" : "098", - "y" : 108, - "name" : "#098" - }, - { - "y" : 97, - "name" : "#099", - "drilldown" : "099" - }, - { - "drilldown" : "100", - "y" : 120, - "name" : "#100" - }, - { - "name" : "#101", - "y" : 77, - "drilldown" : "101" - }, - { - "drilldown" : "102", - "y" : 76, - "name" : "#102" - } - ], - "name" : "Perl Weekly Challenge Languages" - } - ], - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2021-03-07 22:06:23 GMT" - }, - "xAxis" : { - "type" : "category" - }, - "tooltip" : { - "followPointer" : "true", - "pointFormat" : "Challenge {point.name}: {point.y:f}
", - "headerFormat" : "" - }, "drilldown" : { "series" : [ { - "id" : "001", "data" : [ [ "Perl", @@ -549,10 +16,10 @@ 11 ] ], + "id" : "001", "name" : "001" }, { - "id" : "002", "data" : [ [ "Perl", @@ -567,10 +34,12 @@ 10 ] ], + "id" : "002", "name" : "002" }, { "name" : "003", + "id" : "003", "data" : [ [ "Perl", @@ -584,8 +53,7 @@ "Blog", 9 ] - ], - "id" : "003" + ] }, { "id" : "004", @@ -607,7 +75,6 @@ }, { "id" : "005", - "name" : "005", "data" : [ [ "Perl", @@ -621,11 +88,10 @@ "Blog", 12 ] - ] + ], + "name" : "005" }, { - "id" : "006", - "name" : "006", "data" : [ [ "Perl", @@ -639,9 +105,12 @@ "Blog", 7 ] - ] + ], + "id" : "006", + "name" : "006" }, { + "name" : "007", "data" : [ [ "Perl", @@ -656,12 +125,10 @@ 10 ] ], - "name" : "007", "id" : "007" }, { "id" : "008", - "name" : "008", "data" : [ [ "Perl", @@ -675,11 +142,10 @@ "Blog", 12 ] - ] + ], + "name" : "008" }, { - "id" : "009", - "name" : "009", "data" : [ [ "Perl", @@ -693,10 +159,12 @@ "Blog", 13 ] - ] + ], + "id" : "009", + "name" : "009" }, { - "name" : "010", + "id" : "010", "data" : [ [ "Perl", @@ -711,10 +179,9 @@ 11 ] ], - "id" : "010" + "name" : "010" }, { - "name" : "011", "data" : [ [ "Perl", @@ -729,7 +196,8 @@ 10 ] ], - "id" : "011" + "id" : "011", + "name" : "011" }, { "name" : "012", @@ -750,7 +218,6 @@ "id" : "012" }, { - "name" : "013", "data" : [ [ "Perl", @@ -765,7 +232,8 @@ 13 ] ], - "id" : "013" + "id" : "013", + "name" : "013" }, { "name" : "014", @@ -786,7 +254,6 @@ "id" : "014" }, { - "id" : "015", "name" : "015", "data" : [ [ @@ -801,11 +268,10 @@ "Blog", 15 ] - ] + ], + "id" : "015" }, { - "id" : "016", - "name" : "016", "data" : [ [ "Perl", @@ -819,11 +285,13 @@ "Blog", 12 ] - ] + ], + "id" : "016", + "name" : "016" }, { - "id" : "017", "name" : "017", + "id" : "017", "data" : [ [ "Perl", @@ -858,6 +326,8 @@ "name" : "018" }, { + "name" : "019", + "id" : "019", "data" : [ [ "Perl", @@ -871,12 +341,9 @@ "Blog", 13 ] - ], - "name" : "019", - "id" : "019" + ] }, { - "id" : "020", "name" : "020", "data" : [ [ @@ -891,11 +358,11 @@ "Blog", 13 ] - ] + ], + "id" : "020" }, { "id" : "021", - "name" : "021", "data" : [ [ "Perl", @@ -909,9 +376,11 @@ "Blog", 10 ] - ] + ], + "name" : "021" }, { + "name" : "022", "data" : [ [ "Perl", @@ -926,10 +395,10 @@ 10 ] ], - "name" : "022", "id" : "022" }, { + "name" : "023", "id" : "023", "data" : [ [ @@ -944,12 +413,10 @@ "Blog", 12 ] - ], - "name" : "023" + ] }, { "id" : "024", - "name" : "024", "data" : [ [ "Perl", @@ -963,11 +430,12 @@ "Blog", 11 ] - ] + ], + "name" : "024" }, { - "id" : "025", "name" : "025", + "id" : "025", "data" : [ [ "Perl", @@ -985,6 +453,7 @@ }, { "name" : "026", + "id" : "026", "data" : [ [ "Perl", @@ -998,10 +467,10 @@ "Blog", 10 ] - ], - "id" : "026" + ] }, { + "id" : "027", "data" : [ [ "Perl", @@ -1016,11 +485,10 @@ 9 ] ], - "name" : "027", - "id" : "027" + "name" : "027" }, { - "id" : "028", + "name" : "028", "data" : [ [ "Perl", @@ -1035,10 +503,11 @@ 9 ] ], - "name" : "028" + "id" : "028" }, { "name" : "029", + "id" : "029", "data" : [ [ "Perl", @@ -1052,11 +521,9 @@ "Blog", 12 ] - ], - "id" : "029" + ] }, { - "id" : "030", "data" : [ [ "Perl", @@ -1071,11 +538,11 @@ 10 ] ], + "id" : "030", "name" : "030" }, { "id" : "031", - "name" : "031", "data" : [ [ "Perl", @@ -1089,11 +556,10 @@ "Blog", 9 ] - ] + ], + "name" : "031" }, { - "id" : "032", - "name" : "032", "data" : [ [ "Perl", @@ -1107,11 +573,11 @@ "Blog", 10 ] - ] + ], + "id" : "032", + "name" : "032" }, { - "id" : "033", - "name" : "033", "data" : [ [ "Perl", @@ -1125,10 +591,11 @@ "Blog", 10 ] - ] + ], + "id" : "033", + "name" : "033" }, { - "id" : "034", "name" : "034", "data" : [ [ @@ -1143,10 +610,10 @@ "Blog", 11 ] - ] + ], + "id" : "034" }, { - "id" : "035", "name" : "035", "data" : [ [ @@ -1161,7 +628,8 @@ "Blog", 9 ] - ] + ], + "id" : "035" }, { "name" : "036", @@ -1200,6 +668,7 @@ "name" : "037" }, { + "name" : "038", "id" : "038", "data" : [ [ @@ -1214,8 +683,7 @@ "Blog", 12 ] - ], - "name" : "038" + ] }, { "data" : [ @@ -1232,8 +700,8 @@ 12 ] ], - "name" : "039", - "id" : "039" + "id" : "039", + "name" : "039" }, { "name" : "040", @@ -1290,7 +758,6 @@ "name" : "042" }, { - "id" : "043", "name" : "043", "data" : [ [ @@ -1305,9 +772,11 @@ "Blog", 11 ] - ] + ], + "id" : "043" }, { + "name" : "044", "data" : [ [ "Perl", @@ -1322,10 +791,11 @@ 11 ] ], - "name" : "044", "id" : "044" }, { + "name" : "045", + "id" : "045", "data" : [ [ "Perl", @@ -1339,11 +809,10 @@ "Blog", 11 ] - ], - "name" : "045", - "id" : "045" + ] }, { + "id" : "046", "data" : [ [ "Perl", @@ -1358,8 +827,7 @@ 10 ] ], - "name" : "046", - "id" : "046" + "name" : "046" }, { "id" : "047", @@ -1380,6 +848,7 @@ "name" : "047" }, { + "name" : "048", "data" : [ [ "Perl", @@ -1394,7 +863,6 @@ 12 ] ], - "name" : "048", "id" : "048" }, { @@ -1416,7 +884,7 @@ "id" : "049" }, { - "name" : "050", + "id" : "050", "data" : [ [ "Perl", @@ -1431,7 +899,7 @@ 12 ] ], - "id" : "050" + "name" : "050" }, { "name" : "051", @@ -1452,7 +920,7 @@ "id" : "051" }, { - "id" : "052", + "name" : "052", "data" : [ [ "Perl", @@ -1467,7 +935,7 @@ 14 ] ], - "name" : "052" + "id" : "052" }, { "id" : "053", @@ -1502,12 +970,10 @@ 18 ] ], - "name" : "054", - "id" : "054" + "id" : "054", + "name" : "054" }, { - "id" : "055", - "name" : "055", "data" : [ [ "Perl", @@ -1521,7 +987,9 @@ "Blog", 14 ] - ] + ], + "id" : "055", + "name" : "055" }, { "id" : "056", @@ -1542,7 +1010,6 @@ "name" : "056" }, { - "id" : "057", "data" : [ [ "Perl", @@ -1557,10 +1024,11 @@ 15 ] ], + "id" : "057", "name" : "057" }, { - "name" : "058", + "id" : "058", "data" : [ [ "Perl", @@ -1575,10 +1043,9 @@ 13 ] ], - "id" : "058" + "name" : "058" }, { - "id" : "059", "name" : "059", "data" : [ [ @@ -1593,11 +1060,10 @@ "Blog", 16 ] - ] + ], + "id" : "059" }, { - "id" : "060", - "name" : "060", "data" : [ [ "Perl", @@ -1611,11 +1077,12 @@ "Blog", 16 ] - ] + ], + "id" : "060", + "name" : "060" }, { "id" : "061", - "name" : "061", "data" : [ [ "Perl", @@ -1629,11 +1096,12 @@ "Blog", 14 ] - ] + ], + "name" : "061" }, { - "id" : "062", "name" : "062", + "id" : "062", "data" : [ [ "Perl", @@ -1650,8 +1118,8 @@ ] }, { - "id" : "063", "name" : "063", + "id" : "063", "data" : [ [ "Perl", @@ -1668,7 +1136,7 @@ ] }, { - "id" : "064", + "name" : "064", "data" : [ [ "Perl", @@ -1683,7 +1151,7 @@ 16 ] ], - "name" : "064" + "id" : "064" }, { "name" : "065", @@ -1718,11 +1186,11 @@ 14 ] ], - "name" : "066", - "id" : "066" + "id" : "066", + "name" : "066" }, { - "name" : "067", + "id" : "067", "data" : [ [ "Perl", @@ -1737,10 +1205,10 @@ 18 ] ], - "id" : "067" + "name" : "067" }, { - "name" : "06