From 17682ec23006095cb17c217bcfd2a0eb4ef93202 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Mon, 28 Nov 2022 04:21:29 +0000 Subject: - Added solutions by Colin Crain. --- challenge-192/colin-crain/blog.txt | 1 + challenge-192/colin-crain/perl/ch-1.pl | 75 ++ challenge-192/colin-crain/perl/ch-2.pl | 222 +++++ stats/pwc-current.json | 575 ++++++------ stats/pwc-language-breakdown-summary.json | 32 +- stats/pwc-language-breakdown.json | 1352 ++++++++++++++--------------- stats/pwc-leaders.json | 380 ++++---- stats/pwc-summary-1-30.json | 102 +-- stats/pwc-summary-121-150.json | 34 +- stats/pwc-summary-151-180.json | 100 +-- stats/pwc-summary-181-210.json | 36 +- stats/pwc-summary-211-240.json | 98 +-- stats/pwc-summary-241-270.json | 102 +-- stats/pwc-summary-271-300.json | 22 +- stats/pwc-summary-31-60.json | 42 +- stats/pwc-summary-61-90.json | 36 +- stats/pwc-summary-91-120.json | 40 +- stats/pwc-summary.json | 52 +- 18 files changed, 1809 insertions(+), 1492 deletions(-) create mode 100644 challenge-192/colin-crain/blog.txt create mode 100755 challenge-192/colin-crain/perl/ch-1.pl create mode 100755 challenge-192/colin-crain/perl/ch-2.pl diff --git a/challenge-192/colin-crain/blog.txt b/challenge-192/colin-crain/blog.txt new file mode 100644 index 0000000000..daaf31f9dc --- /dev/null +++ b/challenge-192/colin-crain/blog.txt @@ -0,0 +1 @@ +https://colincrain.com/2022/11/27/liberte-egalite-fraternite diff --git a/challenge-192/colin-crain/perl/ch-1.pl b/challenge-192/colin-crain/perl/ch-1.pl new file mode 100755 index 0000000000..d892fc0148 --- /dev/null +++ b/challenge-192/colin-crain/perl/ch-1.pl @@ -0,0 +1,75 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# flipping-your-wig.pl +# +# Binary Flip +# Submitted by: Mohammad S Anwar +# You are given a positive integer, $n. +# +# Write a script to find the binary flip. +# +# Example 1 +# Input: $n = 5 +# Output: 2 +# +# First find the binary equivalent of the given integer, 101. +# Then flip the binary digits 0 -> 1 and 1 -> 0 and we get 010. +# So Binary 010 => Decimal 2. +# +# Example 2 +# Input: $n = 4 +# Output: 3 +# +# Decimal 4 = Binary 100 +# Flip 0 -> 1 and 1 -> 0, we get 011. +# Binary 011 = Decimal 3 +# +# Example 3 +# Input: $n = 6 +# Output: 1 +# +# Decimal 6 = Binary 110 +# Flip 0 -> 1 and 1 -> 0, we get 001. +# Binary 001 = Decimal 1 +# +# © 2022 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use utf8; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + + + +sub binary_flip ( $n ) { + return $n ^ calc_binary_ones( $n ); +} + +sub calc_binary_ones ( $n, $bin = 1 ) { + $bin *= 2 while $bin <= $n; + return $bin - 1; +} + + + + +use Test::More; + +is binary_flip(5), 2, 'ex-1'; +is binary_flip(4), 3, 'ex-2'; +is binary_flip(6), 1, 'ex-3'; + +is binary_flip(1), 0, 'extra-1'; +is binary_flip(2), 1, 'extra-2'; +is binary_flip(3), 0, 'extra-3'; +is binary_flip(7), 0, 'extra-7'; +is binary_flip(8), 7, 'extra-8'; +is binary_flip(9), 6, 'extra-9'; + + +done_testing(); diff --git a/challenge-192/colin-crain/perl/ch-2.pl b/challenge-192/colin-crain/perl/ch-2.pl new file mode 100755 index 0000000000..713538c8d0 --- /dev/null +++ b/challenge-192/colin-crain/perl/ch-2.pl @@ -0,0 +1,222 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# liberté-égalité-fraternité.pl +# +# Equal Distribution +# Submitted by: Mohammad S Anwar +# You are given a list of integers greater than or equal to zero, +# @list. +# +# Write a script to distribute the number so that each members are +# same. If you succeed then print the total moves otherwise print +# -1. +# +# Please follow the rules (as suggested by Neils van Dijke +# [2022-11-21 13:00] +# +# 1) You can only move a value of '1' per move +# 2) You are only allowed to move a value of '1' to a direct +# neighbor/adjacent cell +# +# Example 1: +# Input: @list = (1, 0, 5) +# Output: 4 +# +# Move #1: 1, 1, 4 +# (2nd cell gets 1 from the 3rd cell) +# +# Move #2: 1, 2, 3 +# (2nd cell gets 1 from the 3rd cell) +# +# Move #3: 2, 1, 3 +# (1st cell get 1 from the 2nd cell) +# +# Move #4: 2, 2, 2 +# (2nd cell gets 1 from the 3rd cell) +# +# Example 2: +# Input: @list = (0, 2, 0) +# Output: -1 +# +# It is not possible to make each same. +# +# Example 3: +# Input: @list = (0, 3, 0) +# Output: 2 +# +# Move #1: 1, 2, 0 +# (1st cell gets 1 from the 2nd cell) +# +# Move #2: 1, 1, 1 +# (3rd cell gets 1 from the 2nd cell) + +# analysis: +# +# What a curious puzzle! essentailly a model of diffusion, we +# wish to take an irregular field of data and progressively +# smooth it until we obtain a continuous lowest-energy state. +# Only instead of operating on all points simultaniously, we +# make one ajustement at a time in discrete steps of one unit. +# +# In diffusion, differeneces between a local state and its +# neighbors are distributed between the two, raising the value +# of one and lowering the other. Should the values be the same +# there is no reasonto change anything. With fields in real +# space this is an application of the calculus, but here in our +# simplified, stepwise model we don't need the complexity that +# entails. Instead we need an algorithm that locates the next +# best difference between two adjacent values and adjusts the +# higher to the lower. Exactly what that means remains to be +# determined. + +# It seems the first thing to do is make sure a general +# integral leveling is even possible. If the sum of all values +# is not evenly divisible by the number of pockets there's no +# point in continuing. If it is, then this is our target value. +# +# The rules do not expressly demand we do the leveling as +# quickly as possible, so we'll worry about optimization after +# we've come up with any way to accomplish our goal at all. And +# again we are back to performing the best move over and over +# until we get there. +# +# What would the best move be? It seems moving the maximal +# value one position in the direction of the minimum would be a +# good strategy. Let's implement that. WHat's the worst thing +# that could possibly happen? +# +# method: +# +# Starting small, we'll need functions to determine the minimum +# and maximum values within the array, and the positions where +# thay are located. This will involve iterating across the +# array and keeping a running tally. In theory this looping +# could be collected into a single combined function, but for +# clarity we'll keep the actions clearly deliniated. The +# maximum counts upward from negative infinity, the minimum +# down from infinity. These tallies too could be started from +# the value for the first index but I find the special string +# for infinity underused and conceptually robust. So why not? +# +# Next we will need a move action. Given a position to more +# from and a position to move towards, this function will just +# change the array in-place instead of returning and rewriting +# the array variable. This too seems conceptually pure. Less +# copying, just change the thing itself. +# +# Finally arriving at the meat of the matter, the solve +# function takes the array and decides whether or not there is +# a solution using modular division. After calculating an +# initial minimum and maximum the process is handed to a loop, +# moving one value at a time and recalculating the leftmost min +# and max until the two values are equal. +# +# As it works out we don't actually need the target value after +# all. A counter keeps track of the number of cycles through +# the loop, counting the applications of the move function. +# Because I found the movements fasinating, I left in a VERBOSE +# switch to detail the individual moves as they are made. +# +# Because the algortihm identifies the largest difference +# between elements in the system and their relative placements, +# and then moves to equalize the discrepancy from high to low +# in the direction found, it should always terminate if an +# equal state exists. Because it does not care about absolute +# values, it works for any whole number input. As there is no +# cause for backtracking, the resulting solution should use the +# minimum number of moves. +# +# +# +# +# © 2022 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use utf8; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + +use constant VERBOSE => 1; + + + +sub max_pos ( @array ) { +## returns position and value of maximum element values +## leftmost value is returned in case of multiple occurences + my ($max, $pos) = ( "-Inf", 0 ); + for (0..$#array) { + if ($array[$_] > $max) { + ($max, $pos) = ($array[$_], $_); + } + } + return ($max, $pos); +} + +sub min_pos ( @array ) { +## returns position and value of minimum element values +## leftmost value is returned in case of multiple occurences + my ($min, $pos) = ( "Inf", 0 ); + for (0..$#array) { + if ($array[$_] < $min) { + ($min, $pos) = ($array[$_], $_); + }; + } + return ($min, $pos); +} + +sub move ( $maxpos, $minpos, $arr ) { +## alters the array in-place via reference + $arr->[$maxpos]--; + $maxpos > $minpos + ? $arr->[$maxpos-1]++ + : $arr->[$maxpos+1]++ ; +} + +sub solve ( @array ) { + ## first check to see it's possible + my $sum; + $sum += $_ for @array; + return -1 if $sum % @array; + + ## set the stage + my ($max, $maxpos) = max_pos ( @array ); + my ($min, $minpos) = min_pos ( @array ); + VERBOSE and say "@array max $max min $min"; + + my $moves; + + ## move values by 1 until lowest state + while ( $max > $min and ++$moves ) { + move( $maxpos, $minpos, \@array ); + ($max, $maxpos) = max_pos ( @array ); + ($min, $minpos) = min_pos ( @array ); + VERBOSE and say "@array max $max min $min"; + } + return $moves; +} + + + +## input and processing +my @array = @ARGV; +@array == 0 and @array = (10, -5, 15, -6, 0, 4); + + + +## report +my $res = solve( @array ); +VERBOSE or say $res and exit; + +$res > -1 + ? say "solved in ", $res, "\n" + : say "no solution\n"; + +say "input : @array"; +say "output: $res"; + + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index dc380b7fcb..38ee8129d8 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -4,9 +4,228 @@ "text" : "Total Solutions" } }, + "title" : { + "text" : "The Weekly Challenge - 192" + }, + "xAxis" : { + "type" : "category" + }, + "chart" : { + "type" : "column" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + } + } + }, + "tooltip" : { + "pointFormat" : "{point.name}: {point.y:f}
", + "headerFormat" : "{series.name}
", + "followPointer" : 1 + }, + "legend" : { + "enabled" : 0 + }, + "series" : [ + { + "data" : [ + { + "name" : "Adam Russell", + "drilldown" : "Adam Russell", + "y" : 4 + }, + { + "drilldown" : "Alexander Pankoff", + "y" : 5, + "name" : "Alexander Pankoff" + }, + { + "y" : 4, + "drilldown" : "Ali Moradi", + "name" : "Ali Moradi" + }, + { + "drilldown" : "Athanasius", + "name" : "Athanasius", + "y" : 4 + }, + { + "drilldown" : "Bruce Gray", + "name" : "Bruce Gray", + "y" : 5 + }, + { + "drilldown" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung", + "y" : 2 + }, + { + "drilldown" : "Colin Crain", + "y" : 3, + "name" : "Colin Crain" + }, + { + "y" : 1, + "drilldown" : "Dario Mazzeo", + "name" : "Dario Mazzeo" + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 2 + }, + { + "drilldown" : "E. Choroba", + "y" : 2, + "name" : "E. Choroba" + }, + { + "drilldown" : "Flavio Poletti", + "y" : 6, + "name" : "Flavio Poletti" + }, + { + "drilldown" : "Humberto Massa", + "name" : "Humberto Massa", + "y" : 2 + }, + { + "y" : 3, + "drilldown" : "James Smith", + "name" : "James Smith" + }, + { + "name" : "Jan Krnavek", + "drilldown" : "Jan Krnavek", + "y" : 2 + }, + { + "drilldown" : "Jorg Sommrey", + "y" : 3, + "name" : "Jorg Sommrey" + }, + { + "drilldown" : "Kueppo Wesley", + "name" : "Kueppo Wesley", + "y" : 2 + }, + { + "drilldown" : "Laurent Rosenfeld", + "y" : 5, + "name" : "Laurent Rosenfeld" + }, + { + "drilldown" : "Luca Ferrari", + "name" : "Luca Ferrari", + "y" : 8 + }, + { + "name" : "Mark Anderson", + "drilldown" : "Mark Anderson", + "y" : 2 + }, + { + "name" : "Marton Polgar", + "drilldown" : "Marton Polgar", + "y" : 2 + }, + { + "y" : 2, + "drilldown" : "Mohammad S Anwar", + "name" : "Mohammad S Anwar" + }, + { + "y" : 2, + "drilldown" : "Niels van Dijke", + "name" : "Niels van Dijke" + }, + { + "drilldown" : "Olivier Delouya", + "y" : 1, + "name" : "Olivier Delouya" + }, + { + "drilldown" : "Peter Campbell Smith", + "y" : 3, + "name" : "Peter Campbell Smith" + }, + { + "y" : 2, + "drilldown" : "Robbie Hatley", + "name" : "Robbie Hatley" + }, + { + "y" : 4, + "drilldown" : "Robert DiCicco", + "name" : "Robert DiCicco" + }, + { + "name" : "Robert Ransbottom", + "drilldown" : "Robert Ransbottom", + "y" : 2 + }, + { + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West", + "y" : 5 + }, + { + "drilldown" : "Simon Green", + "name" : "Simon Green", + "y" : 3 + }, + { + "y" : 2, + "drilldown" : "Simon Proctor", + "name" : "Simon Proctor" + }, + { + "drilldown" : "Solathian", + "name" : "Solathian", + "y" : 2 + }, + { + "drilldown" : "Stephen G. Lynn", + "y" : 5, + "name" : "Stephen G. Lynn" + }, + { + "y" : 2, + "drilldown" : "Tim Potapov", + "name" : "Tim Potapov" + }, + { + "drilldown" : "Ulrich Rieke", + "y" : 4, + "name" : "Ulrich Rieke" + }, + { + "name" : "Vamsi Meenavilli", + "drilldown" : "Vamsi Meenavilli", + "y" : 2 + }, + { + "drilldown" : "W. Luis Mochan", + "name" : "W. Luis Mochan", + "y" : 3 + } + ], + "colorByPoint" : 1, + "name" : "The Weekly Challenge - 192" + } + ], + "subtitle" : { + "text" : "[Champions: 36] Last updated at 2022-11-28 04:16:52 GMT" + }, "drilldown" : { "series" : [ { + "id" : "Adam Russell", + "name" : "Adam Russell", "data" : [ [ "Perl", @@ -16,12 +235,9 @@ "Blog", 2 ] - ], - "name" : "Adam Russell", - "id" : "Adam Russell" + ] }, { - "id" : "Alexander Pankoff", "data" : [ [ "Perl", @@ -36,9 +252,11 @@ 1 ] ], + "id" : "Alexander Pankoff", "name" : "Alexander Pankoff" }, { + "id" : "Ali Moradi", "name" : "Ali Moradi", "data" : [ [ @@ -49,11 +267,11 @@ "Raku", 2 ] - ], - "id" : "Ali Moradi" + ] }, { "id" : "Athanasius", + "name" : "Athanasius", "data" : [ [ "Perl", @@ -63,11 +281,9 @@ "Raku", 2 ] - ], - "name" : "Athanasius" + ] }, { - "id" : "Bruce Gray", "data" : [ [ "Perl", @@ -82,6 +298,7 @@ 1 ] ], + "id" : "Bruce Gray", "name" : "Bruce Gray" }, { @@ -95,34 +312,48 @@ "id" : "Cheok-Yin Fung" }, { - "id" : "Dario Mazzeo", + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "name" : "Colin Crain", + "id" : "Colin Crain" + }, + { "data" : [ [ "Perl", 1 ] ], - "name" : "Dario Mazzeo" + "name" : "Dario Mazzeo", + "id" : "Dario Mazzeo" }, { "id" : "Dave Jacoby", + "name" : "Dave Jacoby", "data" : [ [ "Perl", 2 ] - ], - "name" : "Dave Jacoby" + ] }, { - "id" : "E. Choroba", "data" : [ [ "Perl", 2 ] ], - "name" : "E. Choroba" + "name" : "E. Choroba", + "id" : "E. Choroba" }, { "data" : [ @@ -139,22 +370,20 @@ 2 ] ], - "name" : "Flavio Poletti", - "id" : "Flavio Poletti" + "id" : "Flavio Poletti", + "name" : "Flavio Poletti" }, { - "name" : "Humberto Massa", "data" : [ [ "Raku", 2 ] ], - "id" : "Humberto Massa" + "id" : "Humberto Massa", + "name" : "Humberto Massa" }, { - "id" : "James Smith", - "name" : "James Smith", "data" : [ [ "Perl", @@ -164,17 +393,19 @@ "Blog", 1 ] - ] + ], + "id" : "James Smith", + "name" : "James Smith" }, { "name" : "Jan Krnavek", + "id" : "Jan Krnavek", "data" : [ [ "Raku", 2 ] - ], - "id" : "Jan Krnavek" + ] }, { "data" : [ @@ -191,18 +422,16 @@ "id" : "Jorg Sommrey" }, { - "name" : "Kueppo Wesley", "data" : [ [ "Perl", 2 ] ], + "name" : "Kueppo Wesley", "id" : "Kueppo Wesley" }, { - "id" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -216,9 +445,13 @@ "Blog", 1 ] - ] + ], + "id" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld" }, { + "id" : "Luca Ferrari", + "name" : "Luca Ferrari", "data" : [ [ "Raku", @@ -228,32 +461,29 @@ "Blog", 6 ] - ], - "name" : "Luca Ferrari", - "id" : "Luca Ferrari" + ] }, { - "name" : "Mark Anderson", "data" : [ [ "Raku", 2 ] ], - "id" : "Mark Anderson" + "id" : "Mark Anderson", + "name" : "Mark Anderson" }, { "id" : "Marton Polgar", + "name" : "Marton Polgar", "data" : [ [ "Raku", 2 ] - ], - "name" : "Marton Polgar" + ] }, { - "name" : "Mohammad S Anwar", "data" : [ [ "Perl", @@ -264,29 +494,31 @@ 1 ] ], - "id" : "Mohammad S Anwar" + "id" : "Mohammad S Anwar", + "name" : "Mohammad S Anwar" }, { - "id" : "Niels van Dijke", "data" : [ [ "Perl", 2 ] ], - "name" : "Niels van Dijke" + "name" : "Niels van Dijke", + "id" : "Niels van Dijke" }, { - "name" : "Olivier Delouya", "data" : [ [ "Perl", 1 ] ], + "name" : "Olivier Delouya", "id" : "Olivier Delouya" }, { + "id" : "Peter Campbell Smith", "name" : "Peter Campbell Smith", "data" : [ [ @@ -297,18 +529,17 @@ "Blog", 1 ] - ], - "id" : "Peter Campbell Smith" + ] }, { "name" : "Robbie Hatley", + "id" : "Robbie Hatley", "data" : [ [ "Perl", 2 ] - ], - "id" : "Robbie Hatley" + ] }, { "data" : [ @@ -321,8 +552,8 @@ 2 ] ], - "name" : "Robert DiCicco", - "id" : "Robert DiCicco" + "id" : "Robert DiCicco", + "name" : "Robert DiCicco" }, { "data" : [ @@ -331,10 +562,11 @@ 2 ] ], - "name" : "Robert Ransbottom", - "id" : "Robert Ransbottom" + "id" : "Robert Ransbottom", + "name" : "Robert Ransbottom" }, { + "id" : "Roger Bell_West", "name" : "Roger Bell_West", "data" : [ [ @@ -349,11 +581,9 @@ "Blog", 1 ] - ], - "id" : "Roger Bell_West" + ] }, { - "id" : "Simon Green", "data" : [ [ "Perl", @@ -364,27 +594,28 @@ 1 ] ], + "id" : "Simon Green", "name" : "Simon Green" }, { + "name" : "Simon Proctor", + "id" : "Simon Proctor", "data" : [ [ "Raku", 2 ] - ], - "name" : "Simon Proctor", - "id" : "Simon Proctor" + ] }, { - "id" : "Solathian", - "name" : "Solathian", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Solathian", + "name" : "Solathian" }, { "id" : "Stephen G. Lynn", @@ -405,16 +636,17 @@ ] }, { + "id" : "Tim Potapov", + "name" : "Tim Potapov", "data" : [ [ "Perl", 2 ] - ], - "name" : "Tim Potapov", - "id" : "Tim Potapov" + ] }, { + "id" : "Ulrich Rieke", "name" : "Ulrich Rieke", "data" : [ [ @@ -425,21 +657,21 @@ "Raku", 2 ] - ], - "id" : "Ulrich Rieke" + ] }, { - "id" : "Vamsi Meenavilli", "data" : [ [ "Perl", 2 ] ], - "name" : "Vamsi Meenavilli" + "name" : "Vamsi Meenavilli", + "id" : "Vamsi Meenavilli" }, { "name" : "W. Luis Mochan", + "id" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -449,221 +681,8 @@ "Blog", 1 ] - ], - "id" : "W. Luis Mochan" + ] } ] - }, - "title" : { - "text" : "The Weekly Challenge - 192" - }, - "xAxis" : { - "type" : "category" - }, - "tooltip" : { - "pointFormat" : "{point.name}: {point.y:f}
", - "followPointer" : 1, - "headerFormat" : "{series.name}
" - }, - "series" : [ - { - "colorByPoint" : 1, - "name" : "The Weekly Challenge - 192", - "data" : [ - { - "name" : "Adam Russell", - "y" : 4, - "drilldown" : "Adam Russell" - }, - { - "drilldown" : "Alexander Pankoff", - "y" : 5, - "name" : "Alexander Pankoff" - }, - { - "name" : "Ali Moradi", - "y" : 4, - "drilldown" : "Ali Moradi" - }, - { - "name" : "Athanasius", - "y" : 4, - "drilldown" : "Athanasius" - }, - { - "drilldown" : "Bruce Gray", - "y" : 5, - "name" : "Bruce Gray" - }, - { - "y" : 2, - "drilldown" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung" - }, - { - "name" : "Dario Mazzeo", - "y" : 1, - "drilldown" : "Dario Mazzeo" - }, - { - "name" : "Dave Jacoby", - "y" : 2, - "drilldown" : "Dave Jacoby" - }, - { - "name" : "E. Choroba", - "y" : 2, - "drilldown" : "E. Choroba" - }, - { - "name" : "Flavio Poletti", - "drilldown" : "Flavio Poletti", - "y" : 6 - }, - { - "drilldown" : "Humberto Massa", - "y" : 2, - "name" : "Humberto Massa" - }, - { - "name" : "James Smith", - "drilldown" : "James Smith", - "y" : 3 - }, - { - "name" : "Jan Krnavek", - "y" : 2, - "drilldown" : "Jan Krnavek" - }, - { - "name" : "Jorg Sommrey", - "drilldown" : "Jorg Sommrey", - "y" : 3 - }, - { - "y" : 2, - "drilldown" : "Kueppo Wesley", - "name" : "Kueppo Wesley" - }, - { - "name" : "Laurent Rosenfeld", - "y" : 5, - "drilldown" : "Laurent Rosenfeld" - }, - { - "name" : "Luca Ferrari", - "y" : 8, - "drilldown" : "Luca Ferrari" - }, - { - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson", - "y" : 2 - }, - { - "name" : "Marton Polgar", - "y" : 2, - "drilldown" : "Marton Polgar" - }, - { - "name" : "Mohammad S Anwar", - "y" : 2, - "drilldown" : "Mohammad S Anwar" - }, - { - "name" : "Niels van Dijke", - "drilldown" : "Niels van Dijke", - "y" : 2 - }, - { - "y" : 1, - "drilldown" : "Olivier Delouya", - "name" : "Olivier Delouya" - }, - { - "name" : "Peter Campbell Smith", - "y" : 3, - "drilldown" : "Peter Campbell Smith" - }, - { - "name" : "Robbie Hatley", - "y" : 2, - "drilldown" : "Robbie Hatley" - }, - { - "y" : 4, - "drilldown" : "Robert DiCicco", - "name" : "Robert DiCicco" - }, - { - "y" : 2, - "drilldown" : "Robert Ransbottom", - "name" : "Robert Ransbottom" - }, - { - "name" : "Roger Bell_West", - "y" : 5, - "drilldown" : "Roger Bell_West" - }, - { - "name" : "Simon Green", - "drilldown" : "Simon Green", - "y" : 3 - }, - { - "name" : "Simon Proctor", - "y" : 2, - "drilldown" : "Simon Proctor" - }, - { - "name" : "Solathian", - "y" : 2, - "drilldown" : "Solathian" - }, - { - "name" : "Stephen G. Lynn", - "y" : 5, - "drilldown" : "Stephen G. Lynn" - }, - { - "name" : "Tim Potapov", - "drilldown" : "Tim Potapov", - "y" : 2 - }, - { - "y" : 4, - "drilldown" : "Ulrich Rieke", - "name" : "Ulrich Rieke" - }, - { - "name" : "Vamsi Meenavilli", - "y" : 2, - "drilldown" : "Vamsi Meenavilli" - }, - { - "drilldown" : "W. Luis Mochan", - "y" : 3, - "name" : "W. Luis Mochan" - } - ] - } - ], - "subtitle" : { - "text" : "[Champions: 35] Last updated at 2022-11-28 03:38:59 GMT" - }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - } - } - }, - "chart" : { - "type" : "column" - }, - "legend" : { - "enabled" : 0 } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 419a8576c5..e12f12a798 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,9 +1,6 @@ { - "yAxis" : { - "title" : { - "text" : null - }, - "min" : 0 + "chart" : { + "type" : "column" }, "xAxis" : { "labels" : { @@ -14,35 +11,41 @@ }, "type" : "category" }, + "yAxis" : { + "min" : 0, + "title" : { + "text" : null + } + }, "title" : { "text" : "The Weekly Challenge Contributions [2019 - 2022]" }, "subtitle" : { - "text" : "Last updated at 2022-11-28 03:38:58 GMT" + "text" : "Last updated at 2022-11-28 04:16:52 GMT" }, "series" : [ { "name" : "Contributions", "dataLabels" : { - "color" : "#FFFFFF", - "y" : 10, - "rotation" : -90, - "align" : "right", "style" : { "fontFamily" : "Verdana, sans-serif", "fontSize" : "13px" }, + "format" : "{point.y:.0f}", + "rotation" : -90, + "color" : "#FFFFFF", + "y" : 10, "enabled" : "true", - "format" : "{point.y:.0f}" + "align" : "right" }, "data" : [ [ "Blog", - 3055 + 3056 ], [ "Perl", - 9420 + 9422 ], [ "Raku", @@ -54,9 +57,6 @@ "tooltip" : { "pointFormat" : "{point.y:.0f}" }, - "chart" : { - "type" : "column" - }, "legend" : { "enabled" : "false" } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index 2cf279e629..bec6bc274e 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,9 +1,21 @@ { + "chart" : { + "type" : "column" + }, + "title" : { + "text" : "The Weekly Challenge Language" + }, + "yAxis" : { + "title" : { + "text" : "Total Solutions" + } + }, + "xAxis" : { + "type" : "category" + }, "drilldown" : { "series" : [ { - "id" : "001", - "name" : "001", "data" : [ [ "Perl", @@ -17,7 +29,9 @@ "Blog", 11 ] - ] + ], + "id" : "001", + "name" : "001" }, { "data" : [ @@ -34,12 +48,12 @@ 10 ] ], - "name" : "002", - "id" : "002" + "id" : "002", + "name" : "002" }, { - "id" : "003", "name" : "003", + "id" : "003", "data" : [ [ "Perl", @@ -56,8 +70,6 @@ ] }, { - "id" : "004", - "name" : "004", "data" : [ [ "Perl", @@ -71,11 +83,13 @@ "Blog", 10 ] - ] + ], + "name" : "004", + "id" : "004" }, { - "id" : "005", "name" : "005", + "id" : "005", "data" : [ [ "Perl", @@ -110,7 +124,6 @@ ] }, { - "id" : "007", "data" : [ [ "Perl", @@ -125,10 +138,12 @@ 10 ] ], + "id" : "007", "name" : "007" }, { "name" : "008", + "id" : "008", "data" : [ [ "Perl", @@ -142,8 +157,7 @@ "Blog", 12 ] - ], - "id" : "008" + ] }, { "data" : [ @@ -160,10 +174,11 @@ 13 ] ], - "name" : "009", - "id" : "009" + "id" : "009", + "name" : "009" }, { + "name" : "010", "id" : "010", "data" : [ [ @@ -178,11 +193,9 @@ "Blog", 11 ] - ], - "name" : "010" + ] }, { - "id" : "011", "data" : [ [ "Perl", @@ -197,11 +210,12 @@ 10 ] ], + "id" : "011", "name" : "011" }, { - "id" : "012", "name" : "012", + "id" : "012", "data" : [ [ "Perl", @@ -232,8 +246,8 @@ 13 ] ], - "name" : "013", - "id" : "013" + "id" : "013", + "name" : "013" }, { "data" : [ @@ -254,7 +268,6 @@ "id" : "014" }, { - "name" : "015", "data" : [ [ "Perl", @@ -269,9 +282,12 @@ 15 ] ], - "id" : "015" + "id" : "015", + "name" : "015" }, { + "id" : "016", + "name" : "016", "data" : [ [ "Perl", @@ -285,9 +301,7 @@ "Blog", 12 ] - ], - "name" : "016", - "id" : "016" + ] }, { "data" : [ @@ -308,7 +322,6 @@ "id" : "017" }, { - "id" : "018", "data" : [ [ "Perl", @@ -323,10 +336,10 @@ 14 ] ], - "name" : "018" + "name" : "018", + "id" : "018" }, { - "id" : "019", "data" : [ [ "Perl", @@ -341,10 +354,10 @@ 13 ] ], + "id" : "019", "name" : "019" }, { - "id" : "020", "data" : [ [ "Perl", @@ -359,10 +372,12 @@ 13 ] ], - "name" : "020" + "name" : "020", + "id" : "020" }, { "id" : "021", + "name" : "021", "data" : [ [ "Perl", @@ -376,8 +391,7 @@ "Blog", 10 ] - ], - "name" : "021" + ] }, { "id" : "022", @@ -398,8 +412,6 @@ ] }, { - "id" : "023", - "name" : "023", "data" : [ [ "Perl", @@ -413,11 +425,11 @@ "Blog", 12 ] - ] + ], + "name" : "023", + "id" : "023" }, { - "id" : "024", - "name" : "024", "data" : [ [ "Perl", @@ -431,11 +443,11 @@ "Blog", 11 ] - ] + ], + "name" : "024", + "id" : "024" }, { - "id" : "025", - "name" : "025", "data" : [ [ "Perl", @@ -449,10 +461,11 @@ "Blog", 12 ] - ] + ], + "id" : "025", + "name" : "025" }, { - "name" : "026", "data" : [ [ "Perl", @@ -467,11 +480,10 @@ 10 ] ], - "id" : "026" + "id" : "026", + "name" : "026" }, { - "id" : "027", - "name" : "027", "data" : [ [ "Perl", @@ -485,10 +497,11 @@ "Blog", 9 ] - ] + ], + "name" : "027", + "id" : "027" }, { - "name" : "028", "data" : [ [ "Perl", @@ -503,10 +516,10 @@ 9 ] ], + "name" : "028", "id" : "028" }, { - "name" : "029", "data" : [ [ "Perl", @@ -521,9 +534,12 @@ 12 ] ], - "id" : "029" + "id" : "029", + "name" : "029" }, { + "name" : "030", + "id" : "030", "data" : [ [ "Perl", @@ -537,11 +553,10 @@ "Blog", 10 ] - ], - "name" : "030", - "id" : "030" + ] }, { + "id" : "031", "name" : "031", "data" : [ [ @@ -556,10 +571,11 @@ "Blog", 9 ] - ], - "id" : "031" + ] }, { + "name" : "032", + "id" : "032", "data" : [ [ "Perl", @@ -573,11 +589,10 @@ "Blog", 10 ] - ], - "name" : "032", - "id" : "032" + ] }, { + "id" : "033", "name" : "033", "data" : [ [ @@ -592,11 +607,9 @@ "Blog", 10 ] - ], - "id" : "033" + ] }, { - "id" : "034", "data" : [ [ "Perl", @@ -611,10 +624,10 @@ 11 ] ], - "name" : "034" + "name" : "034", + "id" : "034" }, { - "id" : "035", "data" : [ [ "Perl", @@ -629,9 +642,11 @@ 9 ] ], - "name" : "035" + "name" : "035", + "id" : "035" }, { + "id" : "036", "name" : "036", "data" : [ [ @@ -646,10 +661,10 @@ "Blog", 11 ] - ], - "id" : "036" + ] }, { + "id" : "037", "name" : "037", "data" : [ [ @@ -664,12 +679,9 @@ "Blog", 9 ] - ], - "id" : "037" + ] }, { - "id" : "038", - "name" : "038", "data" : [ [ "Perl", @@ -683,11 +695,13 @@ "Blog", 12 ] - ] + ], + "id" : "038", + "name" : "038" }, { - "id" : "039", "name" : "039", + "id" : "039", "data" : [ [ "Perl", @@ -704,6 +718,7 @@ ] }, { + "name" : "040", "id" : "040", "data" : [ [ @@ -718,11 +733,9 @@ "Blog", 10 ] - ], - "name" : "040" + ] }, { - "id" : "041", "data" : [ [ "Perl", @@ -737,7 +750,8 @@ 9 ] ], - "name" : "041" + "name" : "041", + "id" : "041" }, { "id" : "042", @@ -759,6 +773,7 @@ }, { "name" : "043", + "id" : "043", "data" : [ [ "Perl", @@ -772,10 +787,10 @@ "Blog", 11 ] - ], - "id" : "043" + ] }, { + "id" : "044", "name" : "044", "data" : [ [ @@ -790,8 +805,7 @@ "Blog", 11 ] - ], - "id" : "044" + ] }, { "id" : "045", @@ -812,6 +826,8 @@ ] }, { + "name" : "046", + "id" : "046", "data" : [ [ "Perl", @@ -825,13 +841,9 @@ "Blog", 10 ] - ], - "name" : "046", - "id" : "046" + ] }, { - "id" : "047", - "name" : "047", "data" : [ [ "Perl", @@ -845,7 +857,9 @@ "Blog", 10 ] - ] + ], + "id" : "047", + "name" : "047" }, { "id" : "048", @@ -866,6 +880,7 @@ ] }, { + "name" : "049", "id" : "049", "data" : [ [ @@ -880,12 +895,9 @@ "Blog", 12 ] - ], - "name" : "049" + ] }, { - "id" : "050", - "name" : "050", "data" : [ [ "Perl", @@ -899,11 +911,11 @@ "Blog", 12 ] - ] + ], + "name" : "050", + "id" : "050" }, { - "id" : "051", - "name" : "051", "data" : [ [ "Perl", @@ -917,10 +929,11 @@ "Blog", 11 ] - ] + ], + "id" : "051", + "name" : "051" }, { - "id" : "052", "data" : [ [ "Perl", @@ -935,9 +948,11 @@ 14 ] ], + "id" : "052", "name" : "052" }, { + "name" : "053", "id" : "053", "data" : [ [ @@ -952,10 +967,11 @@ "Blog", 15 ] - ], - "name" : "053" + ] }, { + "name" : "054", + "id" : "054", "data" : [ [ "Perl", @@ -969,13 +985,9 @@ "Blog", 18 ] - ], - "name" : "054", - "id" : "054" + ] }, { - "id" : "055", - "name" : "055", "data" : [ [ "Perl", @@ -989,10 +1001,11 @@ "Blog", 14 ] - ] + ], + "id" : "055", + "name" : "055" }, { - "id" : "056", "data" : [ [ "Perl", @@ -1007,9 +1020,12 @@ 16 ] ], + "id" : "056", "name" : "056" }, { + "name" : "057", + "id" : "057", "data" : [ [ "Perl", @@ -1023,9 +1039,7 @@ "Blog", 15 ] - ], - "name" : "057", - "id" : "057" + ] }, { "data" : [ @@ -1042,8 +1056,8 @@ 13 ] ], - "name" : "058", - "id" : "058" + "id" : "058", + "name" : "058" }, { "data" : [ @@ -1060,11 +1074,10 @@ 16 ] ], - "name" : "059", - "id" : "059" + "id" : "059", + "name" : "059" }, { - "name" : "060", "data" : [ [ "Perl", @@ -1079,10 +1092,12 @@ 16 ] ], + "name" : "060", "id" : "060" }, { "name" : "061", + "id" : "061", "data" : [ [ "Perl", @@ -1096,12 +1111,9 @@ "Blog", 14 ] - ], - "id" : "061" + ] }, { - "id" : "062", - "name" : "062", "data" : [ [ "Perl", @@ -1115,11 +1127,13 @@ "Blog", 11 ] - ] + ], + "name" : "062", + "id" : "062" }, { - "id" : "063", "name" : "063", + "id" : "063", "data" : [ [ "Perl", @@ -1136,7 +1150,6 @@ ] }, { - "name" : "064", "data" : [ [ "Perl", @@ -1151,9 +1164,11 @@ 16 ] ], + "name" : "064", "id" : "064" }, { + "id" : "065", "name" : "065", "data" : [ [ @@ -1168,10 +1183,11 @@ "Blog", 15 ] - ], - "id" : "065" + ] }, { + "id" : "066", + "name" : "066", "data" : [ [ "Perl", @@ -1185,13 +1201,9 @@ "Blog", 14 ] - ], - "name" : "066", - "id" : "066" + ] }, { - "id" : "067", - "name" : "067", "data" : [ [ "Perl", @@ -1205,9 +1217,12 @@ "Blog", 18 ] - ] + ], + "name" : "067", + "id" : "067" }, { + "name" : "068", "id" : "068", "data" : [ [ @@ -1222,10 +1237,11 @@ "Blog", 13 ] - ], - "name" : "068" + ] }, { + "name" : "069", + "id" : "069", "data" : [ [ "Perl", @@ -1239,12 +1255,9 @@ "Blog", 16 ] - ], - "name" : "069", - "id" : "069" + ] }, { - "id" : "070", "data" : [ [ "Perl", @@ -1259,10 +1272,10 @@ 17 ] ], + "id" : "070", "name" : "070" }, { - "id" : "071", "data" : [ [ "Perl", @@ -1277,11 +1290,10 @@ 15 ] ], + "id" : "071", "name" : "071" }, { - "id" : "072", - "name" : "072", "data" : [ [ "Perl", @@ -1295,9 +1307,13 @@ "Blog", 19 ] - ] + ], + "name" : "072", + "id" : "072" }, { + "id" : "073", + "name" : "073", "data" : [ [ "Perl", @@ -1311,9 +1327,7 @@ "Blog", 17 ] - ], - "name" : "073", - "id" : "073" + ] }, { "data" : [ @@ -1348,11 +1362,12 @@ 20 ] ], - "name" : "075", - "id" : "075" + "id" : "075", + "name" : "075" }, { "name" : "076", + "id" : "076", "data" : [ [ "Perl", @@ -1366,10 +1381,10 @@ "Blog", 16 ] - ], - "id" : "076" + ] }, { + "id" : "077", "name" : "077", "data" : [ [ @@ -1384,12 +1399,9 @@ "Blog", 14 ] - ], - "id" : "077" + ] }, { - "id" : "078", - "name" : "078", "data" : [ [ "Perl", @@ -1403,10 +1415,11 @@ "Blog", 18 ] - ] + ], + "name" : "078", + "id" : "078" }, { - "name" : "079", "data" : [ [ "Perl", @@ -1421,11 +1434,10 @@ 17 ] ], - "id" : "079" + "id" : "079", + "name" : "079" }, { - "id" : "080", - "name" : "080", "data" : [ [ "Perl", @@ -1439,10 +1451,13 @@ "Blog", 16 ] - ] + ], + "id" : "080", + "name" : "080" }, { "name" : "081", + "id" : "081", "data" : [ [ "Perl", @@ -1456,11 +1471,9 @@ "Blog", 15 ] - ], - "id" : "081" + ] }, { - "name" : "082", "data" : [ [ "Perl", @@ -1475,6 +1488,7 @@ 17 ] ], + "name" : "082", "id" : "082" }, { @@ -1492,10 +1506,12 @@ 16 ] ], - "name" : "083", - "id" : "083" + "id" : "083", + "name" : "083" }, { + "name" : "084", + "id" : "084", "data" : [ [ "Perl", @@ -1509,13 +1525,9 @@ "Blog", 12 ] - ], - "name" : "084", - "id" : "084" + ] }, { - "id" : "085", - "name" : "085", "data" : [ [ "Perl", @@ -1529,10 +1541,11 @@ "Blog", 18 ] - ] + ], + "id" : "085", + "name" : "085" }, { - "id" : "086", "data" : [ [ "Perl", @@ -1547,10 +1560,10 @@ 15 ] ], + "id" : "086", "name" : "086" }, { - "name" : "087", "data" : [ [ "Perl", @@ -1565,9 +1578,11 @@ 14 ] ], + "name" : "087", "id" : "087" }, { + "name" : "088", "id" : "088", "data" : [ [ @@ -1582,10 +1597,11 @@ "Blog", 20 ] - ], - "name" : "088" + ] }, { + "id" : "089", + "name" : "089", "data" : [ [ "Perl", @@ -1599,13 +1615,9 @@ "Blog", 20 ] - ], - "name" : "089", - "id" : "089" + ] }, { - "id" : "090", - "name" : "090", "data" : [ [ "Perl", @@ -1619,10 +1631,11 @@ "Blog", 17 ] - ] + ], + "id" : "090", + "name" : "090" }, { - "id" : "091", "data" : [ [ "Perl", @@ -1637,9 +1650,11 @@ 16 ] ], - "name" : "091" + "name" : "091", + "id" : "091" }, { + "name" : "092", "id" : "092", "data" : [ [ @@ -1654,11 +1669,9 @@ "Blog", 16 ] - ], - "name" : "092" + ] }, { - "name" : "093", "data" : [ [ "Perl", @@ -1673,9 +1686,12 @@ 16 ] ], - "id" : "093" + "id" : "093", + "name" : "093" }, { + "name" : "094", + "id" : "094", "data" : [ [ "Perl", @@ -1689,12 +1705,9 @@ "Blog", 17 ] - ], - "name" : "094", - "id" : "094" + ] }, { - "name" : "095", "data" : [ [ "Perl", @@ -1709,11 +1722,10 @@ 19 ] ], - "id" : "095" + "id" : "095", + "name" : "095" }, { - "id" : "096", - "name" : "096", "data" : [ [ "Perl", @@ -1727,10 +1739,13 @@ "Blog", 19 ] - ] + ], + "name" : "096", + "id" : "096" }, { "id" : "097", + "name" : "097", "data" : [ [ "Perl", @@ -1744,10 +1759,11 @@ "Blog", 19 ] - ], - "name" : "097" + ] }, { + "name" : "098", + "id" : "098", "data" : [ [ "Perl", @@ -1761,12 +1777,11 @@ "Blog", 17 ] - ], - "name" : "098", - "id" : "098" + ] }, { "name" : "099", + "id" : "099", "data" : [ [ "Perl", @@ -1780,11 +1795,11 @@ "Blog", 14 ] - ], - "id" : "099" + ] }, { "id" : "100", + "name" : "100", "data" : [ [ "Perl", @@ -1798,11 +1813,11 @@ "Blog", 21 ] - ], - "name" : "100" + ] }, { "id" : "101", + "name" : "101", "data" : [ [ "Perl", @@ -1816,12 +1831,9 @@ "Blog", 13 ] - ], - "name" : "101" + ] }, { - "id" : "102", - "name" : "102", "data" : [ [ "Perl", @@ -1835,11 +1847,13 @@ "Blog", 15 ] - ] + ], + "id" : "102", + "name" : "102" }, { - "id" : "103", "name" : "103", + "id" : "103", "data" : [ [ "Perl", @@ -1856,8 +1870,6 @@ ] }, { - "id" : "104", - "name" : "104", "data" : [ [ "Perl", @@ -1871,11 +1883,11 @@ "Blog", 14 ] - ] + ], + "name" :