From ed86aba3173945ac27b43d38aca7bd73b7bc02d0 Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Sun, 22 Aug 2021 05:24:01 +0100 Subject: - Added solutions by Colin Crain. --- challenge-126/colin-crain/blog.txt | 1 + challenge-126/colin-crain/perl/ch-1.pl | 44 + challenge-126/colin-crain/perl/ch-2.pl | 169 +++ challenge-126/colin-crain/raku/ch-1.raku | 22 + challenge-126/colin-crain/raku/ch-2.raku | 53 + stats/pwc-current.json | 457 ++++---- stats/pwc-language-breakdown-summary.json | 52 +- stats/pwc-language-breakdown.json | 1814 ++++++++++++++--------------- stats/pwc-leaders.json | 408 +++---- stats/pwc-summary-1-30.json | 94 +- stats/pwc-summary-121-150.json | 102 +- stats/pwc-summary-151-180.json | 102 +- stats/pwc-summary-181-210.json | 114 +- stats/pwc-summary-211-240.json | 34 +- stats/pwc-summary-31-60.json | 114 +- stats/pwc-summary-61-90.json | 108 +- stats/pwc-summary-91-120.json | 102 +- stats/pwc-summary.json | 508 ++++---- 18 files changed, 2305 insertions(+), 1993 deletions(-) create mode 100644 challenge-126/colin-crain/blog.txt create mode 100644 challenge-126/colin-crain/perl/ch-1.pl create mode 100644 challenge-126/colin-crain/perl/ch-2.pl create mode 100644 challenge-126/colin-crain/raku/ch-1.raku create mode 100644 challenge-126/colin-crain/raku/ch-2.raku diff --git a/challenge-126/colin-crain/blog.txt b/challenge-126/colin-crain/blog.txt new file mode 100644 index 0000000000..4c5248d531 --- /dev/null +++ b/challenge-126/colin-crain/blog.txt @@ -0,0 +1 @@ +https://colincrain.com/2021/08/22/i-sweep-for-no-one/ diff --git a/challenge-126/colin-crain/perl/ch-1.pl b/challenge-126/colin-crain/perl/ch-1.pl new file mode 100644 index 0000000000..a5d9d62a2e --- /dev/null +++ b/challenge-126/colin-crain/perl/ch-1.pl @@ -0,0 +1,44 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# 126-1-no-one-home.pl +# +# Count Numbers +# Submitted by: Mohammad S Anwar +# You are given a positive integer $N. +# +# Write a script to print count of numbers from 1 to $N that don’t contain digit 1. +# +# Example +# Input: $N = 15 +# Output: 8 +# +# There are 8 numbers between 1 and 15 that don't contain digit 1. +# 2, 3, 4, 5, 6, 7, 8, 9. +# +# Input: $N = 25 +# Output: 13 +# +# There are 13 numbers between 1 and 25 that don't contain digit 1. +# 2, 3, 4, 5, 6, 7, 8, 9, 20, 22, 23, 24, 25. +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use utf8; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + + +say scalar grep { ! /1/ } (2..shift @ARGV) ; + + + + + + + diff --git a/challenge-126/colin-crain/perl/ch-2.pl b/challenge-126/colin-crain/perl/ch-2.pl new file mode 100644 index 0000000000..0d4e426441 --- /dev/null +++ b/challenge-126/colin-crain/perl/ch-2.pl @@ -0,0 +1,169 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl +# +# 126-2-clean-sweep.pl +# +# Minesweeper Game +# Submitted by: Cheok-Yin Fung +# +# You are given a rectangle with points marked with either x or *. +# Please consider the x as a land mine. +# +# Write a script to print a rectangle with numbers and x as in the +# Minesweeper game. +# +# A number in a square of the minesweeper game indicates the number +# of mines within the neighbouring squares (usually 8), also +# implies that there are no bombs on that square. +# +# Example +# Input: +# x * * * x * x x x x +# * * * * * * * * * x +# * * * * x * x * x * +# * * * x x * * * * * +# x * * * x * * * * x +# +# Output: +# x 1 0 1 x 2 x x x x +# 1 1 0 2 2 4 3 5 5 x +# 0 0 1 3 x 3 x 2 x 2 +# 1 1 1 x x 4 1 2 2 2 +# x 1 1 3 x 2 0 0 1 x +# +# theory: +# +# Well let me say I thought at first we'd been tasked with +# actually making a minesweeper game. I mean, on thinking it +# through it wouldn't be particularly difficult or anything; +# just take coordinate coded input and reprint the updated map. +# Or even provide terminal blanking tricks to make a proper +# ascii gui or sorts. +# +# Really the hard part would be thinking up and implementing +# all the fiddly details that go into an effort like that more +# than the code logic. +# +# I get the feeling someone will go the extra distance and do +# it; we may more likely get several versions to play arond +# with. +# +# Me, on the other hand I think I'll stick with the request as +# written. Perhaps when I'm done rooting through all the other +# rabbit holes permeating my life this week I'll have time to +# come back and fancy it up. +# +# Not likely though. I wouldn't wait up. +# +# So we have a request for the minesweeper *interface map*, +# rather than the *game*, which is an imprtant and neccessary +# subtask to breating the game, determining the information +# revealed to the user with every test made. The ultimate goal +# of the game is to reveal the entirely of this map, position +# by position, without testing a square with a mine in it. +# +# What we start with is the secret map of the minefield, which +# the player never directly sees. The player moves to a +# coordinate position, and the number of mines surrounding that +# square is revealed. By combining this information from a +# number of directions inferences can be made and the location, +# in theory, of the mines can be determined. +# +# WHat we need to construct is the map of the neighboring mine +# counts for each square that isn't a mine itself. If the +# player picks one of those squares the mine goes off, terrible +# things happen and the game is over, so we need never compute +# those positions. +# +# implementation: +# +# We could go about this two ways. We could either loop through +# the array, and for each cell scan the surrounding 8 cells, +# augmenting a count to each if the current cell contains a +# mine, or loop through each cell and search the surrounding +# area for active mines and count them up all at once that way. +# Either way involves a double iteator through the matrix, +# followed by another loop to encircle the candidate. Hoewever +# in the first strategy if a cell does not contain a mine we +# can skip the surrounding scan, so we'll use that. When +# implementing the game we only need to precompute this step +# once so we needn't worry too much about time complexity but +# it shouldn't be ignored either. +# +# Persenting the deltas as a list of arrays rather than +# generating them on the fly is less redundant processing, and +# we have no need to skip the no-op step of delta [0,0] as it's +# never addressed. +# +# In an actual game we'd just probably just roll this +# neighbor-data step into the map-generation phase, unless +# perhaps we wanted to present just the mines for display +# design, say at the end or when the player lost or such. But +# we won't worry about that. In any case a simple map generator +# is included, with parameters for height, width and % +# probability of a cell being a mine. +# +# +# +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +use warnings; +use strict; +use utf8; +use feature ":5.26"; +use feature qw(signatures); +no warnings 'experimental::signatures'; + + +# ## uncomment for the example: +# +# my $mat = [ [ qw( x * * * x * x x x x ) ], +# [ qw( * * * * * * * * * x ) ], +# [ qw( * * * * x * x * x * ) ], +# [ qw( * * * x x * * * * * ) ], +# [ qw( x * * * x * * * * x ) ] ]; + +my $mat = generate_map(10,10,30); + +my @mat = map { [ map { $_ eq '*' ? 0 : $_ } $_->@* ] } $mat->@* ; +my @deltas = ( [-1,-1], [-1,0 ], [-1, 1], + [ 0,-1], [ 0,1 ], + [ 1,-1], [ 1, 0], [ 1, 1] ); + +for my $i ( 0..$#mat ) { + for my $j ( 0..$mat[0]->$#* ) { + next unless $mat->[$i][$j] eq 'x'; + for my $d ( @deltas ) { + my $r = $i + $d->[0]; + my $c = $j + $d->[1]; + if ( @mat > $r >= 0 and $mat[0]->@* > $c >= 0 ) { + next if $mat[$r][$c] eq 'x'; + $mat[$r][$c]++; + } + } + } +} +say "\nInput:\n"; +say "$_->@*" for $mat->@*; + +say "\nOutput:\n"; +say "$_->@*" for @mat; + + +sub generate_map ($r, $c, $pct) { +## height in rows, width in columns, % chance of cell being a mine + my $mat = []; + for my $row ( 0..$r ) { + for my $col ( 0.. $c ) { + $mat->[$row][$col] = rand(100)-$pct < 0 + ? 'x' + : '*' ; + } + } + return $mat; +} diff --git a/challenge-126/colin-crain/raku/ch-1.raku b/challenge-126/colin-crain/raku/ch-1.raku new file mode 100644 index 0000000000..1a30573417 --- /dev/null +++ b/challenge-126/colin-crain/raku/ch-1.raku @@ -0,0 +1,22 @@ +#!/usr/bin/env perl6 +# +# +# 126-1-no-one-home.raku +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN ( $number = 5 ) ; + + +say (2..$number).grep({ !/1/ }) + .elems; + + + + + diff --git a/challenge-126/colin-crain/raku/ch-2.raku b/challenge-126/colin-crain/raku/ch-2.raku new file mode 100644 index 0000000000..c7d3e9da2c --- /dev/null +++ b/challenge-126/colin-crain/raku/ch-2.raku @@ -0,0 +1,53 @@ +#!/usr/bin/env perl6 +# +# +# 126-2-clean-sweep.raku +# +# +# +# © 2021 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN () ; + + +my $m = 3; +my $n = 3; +my $pct = 30; + +my @mat = generate_map( $m, $n, $pct ); +say "$_" for @mat; + +my @map = @mat.map({ $_.map({ $_ eq '*' ?? 0 !! $_ }).Array }); +say "$_" for @map; + +my @range = -1, 0, 1; +my @deltas = (@range X @range).grep({all( $_ ) != 0}); + + +sub generate_map ($m, $n, $pct) { +## height in rows, width in columns, % chance of cell being a mine + my @mat; + my @list = |('x' xx $pct), |('*' xx 100 - $pct); + for (^$m X ^$n) -> ($r, $c) { + @mat[$r][$c] = @list.roll; + } + return @mat; +} + +for ^(@map.elems) X ^(@map[0].elems) -> ($i, $j) { + next unless @map[$i][$j] eq 'x'; + for @deltas -> $d { + my $r = $i + $d[0]; + my $c = $j + $d[1]; + if ( @map.elems > $r >= 0 and @map[0].elems > $c >= 0 ) { + next if @map[$r][$c] eq 'x'; + @map[$r][$c] += 1; + } + } + +} + +say "$_" for @map; diff --git a/stats/pwc-current.json b/stats/pwc-current.json index a323b216db..ed2bb912dc 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,8 +1,170 @@ { + "subtitle" : { + "text" : "[Champions: 28] Last updated at 2021-08-22 04:21:59 GMT" + }, + "xAxis" : { + "type" : "category" + }, + "plotOptions" : { + "series" : { + "dataLabels" : { + "format" : "{point.y}", + "enabled" : 1 + }, + "borderWidth" : 0 + } + }, + "series" : [ + { + "data" : [ + { + "y" : 4, + "drilldown" : "Andinus", + "name" : "Andinus" + }, + { + "drilldown" : "Andrew Shitov", + "name" : "Andrew Shitov", + "y" : 1 + }, + { + "y" : 2, + "name" : "Andrezgz", + "drilldown" : "Andrezgz" + }, + { + "name" : "Belmark Caday", + "drilldown" : "Belmark Caday", + "y" : 2 + }, + { + "y" : 2, + "drilldown" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung" + }, + { + "y" : 5, + "name" : "Colin Crain", + "drilldown" : "Colin Crain" + }, + { + "y" : 1, + "drilldown" : "Cristina Heredia", + "name" : "Cristina Heredia" + }, + { + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby", + "y" : 3 + }, + { + "drilldown" : "Duane Powell", + "name" : "Duane Powell", + "y" : 2 + }, + { + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti", + "y" : 6 + }, + { + "name" : "James Smith", + "drilldown" : "James Smith", + "y" : 3 + }, + { + "name" : "Jorg Sommrey", + "drilldown" : "Jorg Sommrey", + "y" : 2 + }, + { + "drilldown" : "Konstantinos Giannakakis", + "name" : "Konstantinos Giannakakis", + "y" : 2 + }, + { + "drilldown" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld", + "y" : 5 + }, + { + "y" : 2, + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch" + }, + { + "y" : 4, + "name" : "Luca Ferrari", + "drilldown" : "Luca Ferrari" + }, + { + "name" : "Mark Anderson", + "drilldown" : "Mark Anderson", + "y" : 2 + }, + { + "y" : 2, + "drilldown" : "Matthew Neleigh", + "name" : "Matthew Neleigh" + }, + { + "y" : 1, + "drilldown" : "Olivier Delouya", + "name" : "Olivier Delouya" + }, + { + "y" : 2, + "name" : "Paul Fajman", + "drilldown" : "Paul Fajman" + }, + { + "y" : 2, + "name" : "Pete Houston", + "drilldown" : "Pete Houston" + }, + { + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West", + "y" : 5 + }, + { + "y" : 3, + "name" : "Simon Green", + "drilldown" : "Simon Green" + }, + { + "name" : "Simon Proctor", + "drilldown" : "Simon Proctor", + "y" : 2 + }, + { + "name" : "Steven Wilson", + "drilldown" : "Steven Wilson", + "y" : 1 + }, + { + "y" : 4, + "name" : "Stuart Little", + "drilldown" : "Stuart Little" + }, + { + "drilldown" : "Ulrich Rieke", + "name" : "Ulrich Rieke", + "y" : 4 + }, + { + "name" : "W. Luis Mochan", + "drilldown" : "W. Luis Mochan", + "y" : 3 + } + ], + "name" : "The Weekly Challenge - 126", + "colorByPoint" : 1 + } + ], "drilldown" : { "series" : [ { - "name" : "Andinus", "id" : "Andinus", "data" : [ [ @@ -13,7 +175,8 @@ "Blog", 2 ] - ] + ], + "name" : "Andinus" }, { "name" : "Andrew Shitov", @@ -26,48 +189,64 @@ ] }, { + "name" : "Andrezgz", + "id" : "Andrezgz", "data" : [ [ "Perl", 2 ] - ], - "id" : "Andrezgz", - "name" : "Andrezgz" + ] }, { + "name" : "Belmark Caday", + "id" : "Belmark Caday", "data" : [ [ "Perl", 2 ] - ], - "id" : "Belmark Caday", - "name" : "Belmark Caday" + ] }, { + "id" : "Cheok-Yin Fung", "data" : [ [ "Perl", 2 ] ], - "id" : "Cheok-Yin Fung", "name" : "Cheok-Yin Fung" }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "Colin Crain", + "name" : "Colin Crain" + }, { "id" : "Cristina Heredia", - "name" : "Cristina Heredia", "data" : [ [ "Perl", 1 ] - ] + ], + "name" : "Cristina Heredia" }, { - "name" : "Dave Jacoby", - "id" : "Dave Jacoby", "data" : [ [ "Perl", @@ -77,19 +256,22 @@ "Blog", 1 ] - ] + ], + "id" : "Dave Jacoby", + "name" : "Dave Jacoby" }, { + "name" : "Duane Powell", + "id" : "Duane Powell", "data" : [ [ "Perl", 2 ] - ], - "id" : "Duane Powell", - "name" : "Duane Powell" + ] }, { + "id" : "Flavio Poletti", "data" : [ [ "Perl", @@ -104,10 +286,11 @@ 2 ] ], - "id" : "Flavio Poletti", "name" : "Flavio Poletti" }, { + "name" : "James Smith", + "id" : "James Smith", "data" : [ [ "Perl", @@ -117,31 +300,30 @@ "Blog", 1 ] - ], - "name" : "James Smith", - "id" : "James Smith" + ] }, { - "id" : "Jorg Sommrey", "name" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Jorg Sommrey" }, { - "name" : "Konstantinos Giannakakis", - "id" : "Konstantinos Giannakakis", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Konstantinos Giannakakis", + "name" : "Konstantinos Giannakakis" }, { + "id" : "Laurent Rosenfeld", "data" : [ [ "Perl", @@ -156,7 +338,6 @@ 1 ] ], - "id" : "Laurent Rosenfeld", "name" : "Laurent Rosenfeld" }, { @@ -166,12 +347,10 @@ 2 ] ], - "name" : "Lubos Kolouch", - "id" : "Lubos Kolouch" + "id" : "Lubos Kolouch", + "name" : "Lubos Kolouch" }, { - "id" : "Luca Ferrari", - "name" : "Luca Ferrari", "data" : [ [ "Raku", @@ -181,7 +360,9 @@ "Blog", 2 ] - ] + ], + "id" : "Luca Ferrari", + "name" : "Luca Ferrari" }, { "data" : [ @@ -194,28 +375,28 @@ "name" : "Mark Anderson" }, { - "name" : "Matthew Neleigh", "id" : "Matthew Neleigh", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Matthew Neleigh" }, { + "name" : "Olivier Delouya", "data" : [ [ "Perl", 1 ] ], - "id" : "Olivier Delouya", - "name" : "Olivier Delouya" + "id" : "Olivier Delouya" }, { - "id" : "Paul Fajman", "name" : "Paul Fajman", + "id" : "Paul Fajman", "data" : [ [ "Perl", @@ -225,17 +406,16 @@ }, { "id" : "Pete Houston", - "name" : "Pete Houston", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "Pete Houston" }, { "name" : "Roger Bell_West", - "id" : "Roger Bell_West", "data" : [ [ "Perl", @@ -249,7 +429,8 @@ "Blog", 1 ] - ] + ], + "id" : "Roger Bell_West" }, { "data" : [ @@ -266,26 +447,27 @@ "name" : "Simon Green" }, { - "name" : "Simon Proctor", "id" : "Simon Proctor", "data" : [ [ "Raku", 2 ] - ] + ], + "name" : "Simon Proctor" }, { + "name" : "Steven Wilson", "data" : [ [ "Perl", 1 ] ], - "id" : "Steven Wilson", - "name" : "Steven Wilson" + "id" : "Steven Wilson" }, { + "id" : "Stuart Little", "data" : [ [ "Perl", @@ -296,10 +478,11 @@ 2 ] ], - "name" : "Stuart Little", - "id" : "Stuart Little" + "name" : "Stuart Little" }, { + "name" : "Ulrich Rieke", + "id" : "Ulrich Rieke", "data" : [ [ "Perl", @@ -309,9 +492,7 @@ "Raku", 2 ] - ], - "id" : "Ulrich Rieke", - "name" : "Ulrich Rieke" + ] }, { "data" : [ @@ -324,186 +505,28 @@ 1 ] ], - "name" : "W. Luis Mochan", - "id" : "W. Luis Mochan" + "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan" } ] }, "title" : { "text" : "The Weekly Challenge - 126" }, - "chart" : { - "type" : "column" - }, - "plotOptions" : { - "series" : { - "dataLabels" : { - "format" : "{point.y}", - "enabled" : 1 - }, - "borderWidth" : 0 - } - }, - "legend" : { - "enabled" : 0 - }, "tooltip" : { - "headerFormat" : "{series.name}
", "followPointer" : 1, + "headerFormat" : "{series.name}
", "pointFormat" : "{point.name}: {point.y:f}
" }, - "xAxis" : { - "type" : "category" - }, - "subtitle" : { - "text" : "[Champions: 27] Last updated at 2021-08-21 17:10:58 GMT" - }, "yAxis" : { "title" : { "text" : "Total Solutions" } }, - "series" : [ - { - "colorByPoint" : 1, - "name" : "The Weekly Challenge - 126", - "data" : [ - { - "y" : 4, - "name" : "Andinus", - "drilldown" : "Andinus" - }, - { - "name" : "Andrew Shitov", - "y" : 1, - "drilldown" : "Andrew Shitov" - }, - { - "drilldown" : "Andrezgz", - "y" : 2, - "name" : "Andrezgz" - }, - { - "y" : 2, - "name" : "Belmark Caday", - "drilldown" : "Belmark Caday" - }, - { - "name" : "Cheok-Yin Fung", - "y" : 2, - "drilldown" : "Cheok-Yin Fung" - }, - { - "drilldown" : "Cristina Heredia", - "y" : 1, - "name" : "Cristina Heredia" - }, - { - "drilldown" : "Dave Jacoby", - "name" : "Dave Jacoby", - "y" : 3 - }, - { - "drilldown" : "Duane Powell", - "name" : "Duane Powell", - "y" : 2 - }, - { - "drilldown" : "Flavio Poletti", - "name" : "Flavio Poletti", - "y" : 6 - }, - { - "drilldown" : "James Smith", - "y" : 3, - "name" : "James Smith" - }, - { - "drilldown" : "Jorg Sommrey", - "name" : "Jorg Sommrey", - "y" : 2 - }, - { - "drilldown" : "Konstantinos Giannakakis", - "y" : 2, - "name" : "Konstantinos Giannakakis" - }, - { - "y" : 5, - "name" : "Laurent Rosenfeld", - "drilldown" : "Laurent Rosenfeld" - }, - { - "drilldown" : "Lubos Kolouch", - "name" : "Lubos Kolouch", - "y" : 2 - }, - { - "drilldown" : "Luca Ferrari", - "name" : "Luca Ferrari", - "y" : 4 - }, - { - "y" : 2, - "name" : "Mark Anderson", - "drilldown" : "Mark Anderson" - }, - { - "drilldown" : "Matthew Neleigh", - "y" : 2, - "name" : "Matthew Neleigh" - }, - { - "name" : "Olivier Delouya", - "y" : 1, - "drilldown" : "Olivier Delouya" - }, - { - "name" : "Paul Fajman", - "y" : 2, - "drilldown" : "Paul Fajman" - }, - { - "y" : 2, - "name" : "Pete Houston", - "drilldown" : "Pete Houston" - }, - { - "name" : "Roger Bell_West", - "y" : 5, - "drilldown" : "Roger Bell_West" - }, - { - "drilldown" : "Simon Green", - "name" : "Simon Green", - "y" : 3 - }, - { - "drilldown" : "Simon Proctor", - "name" : "Simon Proctor", - "y" : 2 - }, - { - "y" : 1, - "name" : "Steven Wilson", - "drilldown" : "Steven Wilson" - }, - { - "y" : 4, - "name" : "Stuart Little", - "drilldown" : "Stuart Little" - }, - { - "y" : 4, - "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke" - }, - { - "name" : "W. Luis Mochan", - "y" : 3, - "drilldown" : "W. Luis Mochan" - } - ] - } - ] + "legend" : { + "enabled" : 0 + }, + "chart" : { + "type" : "column" + } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 556d19e7cc..13dfa00c64 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,63 +1,63 @@ { - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2021]" - }, "chart" : { "type" : "column" }, "legend" : { "enabled" : "false" }, + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 + }, + "title" : { + "text" : "The Weekly Challenge Contributions [2019 - 2021]" + }, + "tooltip" : { + "pointFormat" : "{point.y:.0f}" + }, "series" : [ { - "name" : "Contributions", "dataLabels" : { - "format" : "{point.y:.0f}", + "y" : 10, + "enabled" : "true", + "rotation" : -90, "align" : "right", - "color" : "#FFFFFF", "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" + "fontFamily" : "Verdana, sans-serif", + "fontSize" : "13px" }, - "rotation" : -90, - "enabled" : "true", - "y" : 10 + "format" : "{point.y:.0f}", + "color" : "#FFFFFF" }, + "name" : "Contributions", "data" : [ [ "Blog", - 1814 + 1815 ], [ "Perl", - 6028 + 6030 ], [ "Raku", - 3744 + 3746 ] ] } ], - "tooltip" : { - "pointFormat" : "{point.y:.0f}" - }, "xAxis" : { + "type" : "category", "labels" : { "style" : { "fontFamily" : "Verdana, sans-serif", "fontSize" : "13px" } - }, - "type" : "category" + } }, "subtitle" : { - "text" : "Last updated at 2021-08-21 17:10:58 GMT" - }, - "yAxis" : { - "min" : 0, - "title" : { - "text" : null - } + "text" : "Last updated at 2021-08-22 04:21:59 GMT" } } diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json index f735e26b37..7e74206055 100644 --- a/stats/pwc-language-breakdown.json +++ b/stats/pwc-language-breakdown.json @@ -1,673 +1,19 @@ { + "subtitle" : { + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2021-08-22 04:21:59 GMT" + }, "plotOptions" : { "series" : { + "borderWidth" : 0, "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - }, - "borderWidth" : 0 + "format" : "{point.y}", + "enabled" : 1 + } } }, - "legend" : { - "enabled" : "false" - }, - "tooltip" : { - "followPointer" : "true", - "headerFormat" : "", - "pointFormat" : "Challenge {point.name}: {point.y:f}
" - }, "xAxis" : { "type" : "category" }, - "yAxis" : { - "title" : { - "text" : "Total Solutions" - } - }, - "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2021-08-21 17:10:58 GMT" - }, - "series" : [ - { - "data" : [ - { - "drilldown" : "001", - "y" : 161, - "name" : "#001" - }, - { - "name" : "#002", - "y" : 125, - "drilldown" : "002" - }, - { - "name" : "#003", - "y" : 81, - "drilldown" : "003" - }, - { - "y" : 99, - "name" : "#004", - "drilldown" : "004" - }, - { - "drilldown" : "005", - "y" : 78, - "name" : "#005" - }, - { - "y" : 58, - "name" : "#006", - "drilldown" : "006" - }, - { - "y" : 64, - "name" : "#007", - "drilldown" : "007" - }, - { - "drilldown" : "008", - "y" : 78, - "name" : "#008" - }, - { - "y" : 76, - "name" : "#009", - "drilldown" : "009" - }, - { - "y" : 65, - "name" : "#010", - "drilldown" : "010" - }, - { - "name" : "#011", - "y" : 85, - "drilldown" : "011" - }, - { - "drilldown" : "012", - "name" : "#012", - "y" : 89 - }, - { - "drilldown" : "013", - "y" : 85, - "name" : "#013" - }, - { - "drilldown" : "014", - "name" : "#014", - "y" : 101 - }, - { - "drilldown" : "015", - "name" : "#015", - "y" : 99 - }, - { - "drilldown" : "016", - "name" : "#016", - "y" : 71 - }, - { - "y" : 84, - "name" : "#017", - "drilldown" : "017" - }, - { - "name" : "#018", - "y" : 81, - "drilldown" : "018" - }, - { - "y" : 103, - "name" : "#019", - "drilldown" : "019" - }, - { - "name" : "#020", - "y" : 101, - "drilldown" : "020" - }, - { - "y" : 72, - "name" : "#021", - "drilldown" : "021" - }, - { - "drilldown" : "022", - "y" : 68, - "name" : "#022" - }, - { - "drilldown" : "023", - "y" : 97, - "name" : "#023" - }, - { - "y" : 75, - "name" : "#024", - "drilldown" : "024" - }, - { - "y" : 59, - "name" : "#025", - "drilldown" : "025" - }, - { - "drilldown" : "026", - "name" : "#026", - "y" : 74 - }, - { - "drilldown" : "027", - "y" : 60, - "name" : "#027" - }, - { - "y" : 80, - "name" : "#028", - "drilldown" : "028" - }, - { - "name" : "#029", - "y" : 79, - "drilldown" : "029" - }, - { - "name" : "#030", - "y" : 117, - "drilldown" : "030" - }, - { - "drilldown" : "031", - "y" : 89, - "name" : "#031" - }, - { - "y" : 94, - "name" : "#032", - "drilldown" : "032" - }, - { - "name" : "#033", - "y" : 110, - "drilldown" : "033" - }, - { - "name" : "#034", - "y" : 64, - "drilldown" : "034" - }, - { - "drilldown" : "035", - "name" : "#035", - "y" : 64 - }, - { - "name" : "#036", - "y" : 68, - "drilldown" : "036" - }, - { - "drilldown" : "037", - "y" : 67, - "name" : "#037" - }, - { - "y" : 68, - "name" : "#038", - "drilldown" : "038" - }, - { - "y" : 62, - "name" : "#039", - "drilldown" : "039" - }, - { - "name" : "#040", - "y" : 73, - "drilldown" : "040" - }, - { - "name" : "#041", - "y" : 76, - "drilldown" : "041" - }, - { - "y" : 92, - "name" : "#042", - "drilldown" : "042" - }, - { - "drilldown" : "043", - "y" : 68, - "name" : "#043" - }, - { - "name" : "#044", - "y" : 85, - "drilldown" : "044" - }, - { - "drilldown" : "045", - "y" : 96, - "name" : "#045" - }, - { - "drilldown" : "046", - "y" : 87, - "name" : "#046" - }, - { - "drilldown" : "047", - "y" : 84, - "name" : "#047" - }, - { - "drilldown" : "048", - "y" : 108, - "name" : "#048" - }, - { - "name" : "#049", - "y" : 89, - "drilldown" : "049" - }, - { - "drilldown" : "050", - "name" : "#050", - "y" : 98 - }, - { - "drilldown" : "051", - "y" : 89, - "name" : "#051" - }, - { - "name" : "#052", - "y" : 91, - "drilldown" : "052" - }, - { - "drilldown" : "053", - "name" : "#053", - "y" : 101 - }, - { - "y" : 103, - "name" : "#054", - "drilldown" : "054" - }, - { - "drilldown" : "055", - "y" : 88, - "name" : "#055" - }, - { - "name" : "#056", - "y" : 95, - "drilldown" : "056" - }, - { - "drilldown" : "057", - "name" : "#057", - "y" : 80 - }, - { - "name" : "#058", - "y" : 69, - "drilldown" : "058" - }, - { - "drilldown" : "059", - "name" : "#059", - "y" : 89 - }, - { - "name" : "#060", - "y" : 85, - "drilldown" : "060" - }, - { - "name" : "#061", - "y" : 81, - "drilldown" : "061" - }, - { - "name" : "#062", - "y" : 58, - "drilldown" : "062" - }, - { - "y" : 89, - "name" : "#063", - "drilldown" : "063" - }, - { - "drilldown" : "064", - "name" : "#064", - "y" : 80 - }, - { - "name" : "#065", - "y" : 73, - "drilldown" : "065" - }, - { - "drilldown" : "066", - "y" : 84, - "name" : "#066" - }, - { - "drilldown" : "067", - "y" : 90, - "name" : "#067" - }, - { - "y" : 75, - "name" : "#068", - "drilldown" : "068" - }, - { - "drilldown" : "069", - "y" : 83, - "name" : "#069" - }, - { - "name" : "#070", - "y" : 93, - "drilldown" : "070" - }, - { - "y" : 78, - "name" : "#071", - "drilldown" : "071" - }, - { - "drilldown" : "072", - "name" : "#072", - "y" : 112 - }, - { - "drilldown" : "073", - "y" : 110, - "name" : "#073" - }, - { - "drilldown" : "074", - "name" : "#074", - "y" : 115 - }, - { - "name" : "#075", - "y" : 115, - "drilldown" : "075" - }, - { - "name" : "#076", - "y" : 99, - "drilldown" : "076" - }, - { - "name" : "#077", - "y" : 98, - "drilldown" : "077" - }, - { - "name" : "#078", - "y" : 127, - "drilldown" : "078" - }, - { - "drilldown" : "079", - "name" : "#079", - "y" : 122 - }, - { - "name" : "#080", - "y" : 127, - "drilldown" : "080" - }, - { - "drilldown" : "081", - "name" : "#081", - "y" : 114 - }, - { - "drilldown" : "082", - "name" : "#082", - "y" : 114 - }, - { - "drilldown" : "083", - "y" : 127, - "name" : "#083" - }, - { - "drilldown" : "084", - "y" : 119, - "name" : "#084" - }, - { - "y" : 114, - "name" : "#085", - "drilldown" : "085" - }, - { - "drilldown" : "086", - "name" : "#086", - "y" : 104 - }, - { - "drilldown" : "087", - "y" : 101, - "name" : "#087" - }, - { - "drilldown" : "088", - "y" : 121, - "name" : "#088" - }, - { - "y" : 113, - "name" : "#089", - "drilldown" : "089" - }, - { - "name" : "#090", - "y" : 113, - "drilldown" : "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" - }, - { - "y" : 108, - "name" : "#096", - "drilldown" : "096" - }, - { - "y" : 111, - "name" : "#097", - "drilldown" : "097" - }, - { - "drilldown" : "098", - "y" : 108, - "name" : "#098" - }, - { - "name" : "#099", - "y" : 97, - "drilldown" : "099" - }, - { - "y" : 120, - "name" : "#100", - "drilldown" : "100" - }, - { - "y" : 83, - "name" : "#101", - "drilldown" : "101" - }, - { - "drilldown" : "102", - "y" : 90, - "name" : "#102" - }, - { - "drilldown" : "103", - "y" : 79, - "name" : "#103" - }, - { - "drilldown" : "104", - "name" : "#104", - "y" : 85 - }, - { - "y" : 75, - "name" : "#105", - "drilldown" : "105" - }, - { - "drilldown" : "106", - "name" : "#106", - "y" : 97 - }, - { - "drilldown" : "107", - "name" : "#107", - "y" : 90 - }, - { - "drilldown" : "108", - "name" : "#108", - "y" : 94 - }, - { - "drilldown" : "109", - "name" : "#109", - "y" : 107 - }, - { - "drilldown" : "110", - "name" : "#110", - "y" : 108 - }, - { - "drilldown" : "111", - "name" : "#111", - "y" : 91 - }, - { - "y" : 92, - "name" : "#112", - "drilldown" : "112" - }, - { - "y" : 92, - "name" : "#113", - "drilldown" : "113" - }, - { - "y" : 108, - "name" : "#114", - "drilldown" : "114" - }, - { - "drilldown" : "115", - "name" : "#115", - "y" : 96 - }, - { - "y" : 95, - "name" : "#116", - "drilldown" : "116" - }, - { - "y" : 97, - "name" : "#117", - "drilldown" : "117" - }, - { - "y" : 81, - "name" : "#118", - "drilldown" : "118" - }, - { - "drilldown" : "119", - "y" : 123, - "name" : "#119" - }, - { - "y" : 114, - "name" : "#120", - "drilldown" : "120" - }, - { - "y" : 90, - "name" : "#121", - "drilldown" : "121" - }, - { - "name" : "#122", - "y" : 106, - "drilldown" : "122" - }, - { - "y" : 101, - "name" : "#123", - "drilldown" : "123" - }, - { - "drilldown" : "124", - "y" : 81, - "name" : "#124" - }, - { - "drilldown" : "125", - "y" : 61, - "name" : "#125" - }, - { - "drilldown" : "126", - "name" : "#126", - "y" : 72 - } - ], - "name" : "The Weekly Challenge Languages", - "colorByPoint" : "true" - } - ], - "title" : { - "text" : "The Weekly Challenge Language" - }, "drilldown" : { "series" : [ { @@ -685,8 +31,8 @@ 11 ] ], - "name" : "001", - "id" : "001" + "id" : "001", + "name" : "001" }, { "data" : [ @@ -707,6 +53,8 @@ "name" : "002" }, { + "name" : "003", + "id" : "003", "data" : [ [ "Perl", @@ -720,11 +68,11 @@ "Blog", 9 ] - ], - "name" : "003", - "id" : "003" + ] }, { + "name" : "004", + "id" : "004", "data" : [ [ "Perl", @@ -738,13 +86,9 @@ "Blog", 10 ] - ], - "name" : "004", - "id" : "004" + ] }, { - "id" : "005", - "name" : "005", "data" : [ [ "Perl", @@ -758,9 +102,13 @@ "Blog", 12 ] - ] + ], + "id" : "005", + "name" : "005" }, { + "name" : "006", + "id" : "006", "data" : [ [ "Perl", @@ -774,9 +122,7 @@ "Blog", 7 ] - ], - "id" : "006", - "name" : "006" + ] }, { "data" : [ @@ -793,10 +139,12 @@ 10 ] ], - "name" : "007", - "id" : "007" + "id" : "007", + "name" : "007" }, { + "name" : "008", + "id" : "008", "data" : [ [ "Perl", @@ -810,12 +158,9 @@ "Blog", 12 ] - ], - "name" : "008", - "id" : "008" + ] }, { - "name" : "009", "id" : "009", "data" : [ [ @@ -830,9 +175,11 @@ "Blog", 13 ] - ] + ], + "name" : "009" }, { + "name" : "010", "data" : [ [ "Perl", @@ -847,7 +194,6 @@ 11 ] ], - "name" : "010", "id" : "010" }, { @@ -883,11 +229,10 @@ 11 ] ], - "name" : "012", - "id" : "012" + "id" : "012", + "name" : "012" }, { - "id" : "013", "name" : "013", "data" : [ [ @@ -902,11 +247,10 @@ "Blog", 13 ] - ] + ], + "id" : "013" }, { - "name" : "014", - "id" : "014", "data" : [ [ "Perl", @@ -920,9 +264,13 @@ "Blog", 15 ] - ] + ], + "id" : "014", + "name" : "014" }, { + "name" : "015", + "id" : "015", "data" : [ [ "Perl", @@ -936,9 +284,7 @@ "Blog", 15 ] - ], - "name" : "015", - "id" : "015" + ] }, { "data" : [ @@ -959,6 +305,7 @@ "name" : "016" }, { + "name" : "017", "data" : [ [ "Perl", @@ -973,10 +320,11 @@ 12 ] ], - "name" : "017", "id" : "017" }, { + "name" : "018", + "id" : "018", "data" : [ [ "Perl", @@ -990,9 +338,7 @@ "Blog", 14 ] - ], - "id" : "018", - "name" : "018" + ] }, { "data" : [ @@ -1009,11 +355,10 @@ 13 ] ], - "name" : "019", - "id" : "019" + "id" : "019", + "name" : "019" }, { - "name" : "020", "id" : "020", "data" : [ [ @@ -1028,11 +373,12 @@ "Blog", 13 ] - ] + ], + "name" : "020" }, { - "id" : "021", "name" : "021", + "id" : "021", "data" : [ [ "Perl", @@ -1063,8 +409,8 @@ 10 ] ], - "name" : "022", - "id" : "022" + "id" : "022", + "name" : "022" }, { "data" : [ @@ -1081,10 +427,11 @@ 12 ] ], - "name" : "023", - "id" : "023" + "id" : "023", + "name" : "023" }, { + "id" : "024", "data" : [ [ "Perl", @@ -1099,10 +446,10 @@ 11 ] ], - "id" : "024", "name" : "024" }, { + "name" : "025", "data" : [ [ "Perl", @@ -1117,10 +464,11 @@ 12 ] ], - "id" : "025", - "name" : "025" + "id" : "025" }, { + "name" : "026", + "id" : "026", "data" : [ [ "Perl", @@ -1134,11 +482,10 @@ "Blog", 10 ] - ], - "id" : "026", - "name" : "026" + ] }, { + "id" : "027", "data" : [ [ "Perl", @@ -1153,12 +500,11 @@ 9 ] ], - "id" : "027", "name" : "027" }, { - "id" : "028", "name" : "028", + "id" : "028", "data" : [ [ "Perl", @@ -1176,7 +522,6 @@ }, { "name" : "029", - "id" : "029", "data" : [ [ "Perl", @@ -1190,10 +535,10 @@ "Blog", 12 ] - ] + ], + "id" : "029" }, { - "id" : "030", "name" : "030", "data" : [ [ @@ -1208,7 +553,8 @@ "Blog", 10 ] - ] + ], + "id" : "030" }, { "data" : [ @@ -1225,11 +571,10 @@ 9 ] ], - "name" : "031", - "id" : "031" + "id" : "031", + "name" : "031" }, { - "id" : "032", "name" : "032", "data" : [ [ @@ -1244,10 +589,10 @@ "Blog", 10 ] - ] + ], + "id" : "032" }, { - "id" : "033", "name" : "033", "data" : [ [ @@ -1262,11 +607,10 @@ "Blog", 10 ] - ] + ], + "id" : "033" }, { - "name" : "034", - "id" : "034", "data" : [ [ "Perl", @@ -1280,10 +624,11 @@ "Blog", 11 ] - ] + ], + "id" : "034", + "name" : "034" }, { - "name" : "035", "id" : "035", "data" : [ [ @@ -1298,9 +643,11 @@ "Blog", 9 ] - ] + ], + "name" : "035" }, { + "id" : "036", "data" : [ [ "Perl", @@ -1315,12 +662,10 @@ 11 ] ], - "id" : "036", "name" : "036" }, { "id" : "037", - "name" : "037", "data" : [ [ "Perl", @@ -1334,11 +679,12 @@ "Blog", 9 ] - ] + ], + "name" : "037" }, { - "id" : "038", "name" : "038", + "id" : "038", "data" : [ [ "Perl", @@ -1355,8 +701,6 @@ ] }, { - "id" : "039", - "name" : "039", "data" : [ [ "Perl", @@ -1370,9 +714,12 @@ "Blog", 12 ] - ] + ], + "id" : "039", + "name" : "039" }, { + "name" : "040", "data" : [ [ "Perl", @@ -1387,10 +734,11 @@ 10 ] ], - "id" : "040", - "name" : "040" + "id" : "040" }, { + "name" : "041", + "id" : "041", "data" : [ [ "Perl", @@ -1404,12 +752,9 @@ "Blog", 9 ] - ], - "name" : "041", - "id" : "041" + ] }, { - "id" : "042", "name" : "042", "data" : [ [ @@ -1424,11 +769,10 @@ "Blog", 11 ] - ] + ], + "id" : "042" }, { - "name" : "043", - "id" : "043", "data" : [ [ "Perl", @@ -1442,11 +786,11 @@ "Blog", 11 ] - ] + ], + "id" : "043", + "name" : "043" }, { - "name" : "044", - "id" : "044", "data" : [ [ "Perl", @@ -1460,11 +804,11 @@ "Blog", 11 ] - ] + ], + "id" : "044", + "name" : "044" }, { - "name" : "045", - "id" : "045", "data" : [ [ "Perl", @@ -1478,10 +822,11 @@ "Blog", 11 ] - ] + ], + "id" : "045", + "name" : "045" }, { - "id" : "046", "name" : "046", "data" : [ [ @@ -1496,11 +841,10 @@ "Blog", 10 ] - ] + ], + "id" : "046" }, { - "name" : "047", - "id" : "047", "data" : [ [ "Perl", @@ -1514,9 +858,13 @@ "Blog", 10 ] - ] + ], + "id" : "047", + "name" : "047" }, { + "name" : "048", + "id" : "048", "data" : [ [ "Perl", @@ -1530,13 +878,11 @@ "Blog", 12 ] - ], - "id" : "048", - "name" : "048" + ] }, { - "id" : "049", "name" : "049", + "id" : "049", "data" : [ [ "Perl", @@ -1553,6 +899,7 @@ ] }, { + "name" : "050", "data" : [ [ "Perl", @@ -1567,10 +914,11 @@ 12 ] ], - "id" : "050", - "name" : "050" + "id" : "050" }, { + "name" : "051", + "id" : "051", "data" : [ [ "Perl", @@ -1584,11 +932,10 @@ "Blog", 11 ] - ], - "name" : "051", - "id" : "051" + ] }, { + "id" : "052", "data" : [ [ "Perl", @@ -1603,10 +950,10 @@ 14 ] ], - "name" : "052", - "id" : "052" + "name" : "052" }, { + "name" : "053", "data" : [ [ "Perl", @@ -1621,10 +968,10 @@ 15 ] ], - "id" : "053", - "name" : "053" + "id" : "053" }, { + "id" : "054", "data" : [ [ "Perl", @@ -1639,11 +986,9 @@ 18 ] ], - "name" : "054", - "id" : "054" + "name" : "054" }, { - "id" : "055", "name" : "055", "data" : [ [ @@ -1658,11 +1003,12 @@ "Blog", 14 ] - ] + ], + "id" : "055" }, { - "id" : "056", "name" : "056", + "id" : "056", "data" : [ [ "Perl", @@ -1679,7 +1025,6 @@ ] }, { - "id" : "057", "name" : "057", "data" : [ [ @@ -1694,11 +1039,11 @@ "Blog", 15 ] - ] + ], + "id" : "057" }, { "id" : "058", - "name" : "058", "data" : [ [ "Perl", @@ -1712,7 +1057,8 @@ "Blog", 13 ] - ] + ], + "name" : "058" }, { "data" : [ @@ -1751,6 +1097,7 @@ ] }, { + "name" : "061", "data" : [ [ "Perl", @@ -1765,10 +1112,11 @@ 14 ] ], -