diff options
| author | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2022-02-13 23:36:58 +0000 |
|---|---|---|
| committer | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2022-02-13 23:36:58 +0000 |
| commit | 152af5a159cdbc09d7b40394dcfe0e2773a524ba (patch) | |
| tree | 3405c3d96bbe1bb584db4a099c1ab802a838ca3a | |
| parent | 5079125d1af7d04627cc88d09a3fe56c9d640af2 (diff) | |
| download | perlweeklychallenge-club-152af5a159cdbc09d7b40394dcfe0e2773a524ba.tar.gz perlweeklychallenge-club-152af5a159cdbc09d7b40394dcfe0e2773a524ba.tar.bz2 perlweeklychallenge-club-152af5a159cdbc09d7b40394dcfe0e2773a524ba.zip | |
- Added solutions by Colin Crain.
| -rwxr-xr-x | challenge-151/colin-crain/perl/ch-1.pl | 118 | ||||
| -rwxr-xr-x | challenge-151/colin-crain/perl/ch-2.pl | 118 | ||||
| -rwxr-xr-x | challenge-151/colin-crain/raku/ch-1.raku | 77 | ||||
| -rwxr-xr-x | challenge-151/colin-crain/raku/ch-2.raku | 27 | ||||
| -rw-r--r-- | stats/pwc-current.json | 404 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown-summary.json | 56 | ||||
| -rw-r--r-- | stats/pwc-language-breakdown.json | 988 | ||||
| -rw-r--r-- | stats/pwc-leaders.json | 760 | ||||
| -rw-r--r-- | stats/pwc-summary-1-30.json | 28 | ||||
| -rw-r--r-- | stats/pwc-summary-121-150.json | 112 | ||||
| -rw-r--r-- | stats/pwc-summary-151-180.json | 56 | ||||
| -rw-r--r-- | stats/pwc-summary-181-210.json | 108 | ||||
| -rw-r--r-- | stats/pwc-summary-211-240.json | 114 | ||||
| -rw-r--r-- | stats/pwc-summary-241-270.json | 80 | ||||
| -rw-r--r-- | stats/pwc-summary-31-60.json | 102 | ||||
| -rw-r--r-- | stats/pwc-summary-61-90.json | 104 | ||||
| -rw-r--r-- | stats/pwc-summary-91-120.json | 38 | ||||
| -rw-r--r-- | stats/pwc-summary.json | 46 |
18 files changed, 1842 insertions, 1494 deletions
diff --git a/challenge-151/colin-crain/perl/ch-1.pl b/challenge-151/colin-crain/perl/ch-1.pl new file mode 100755 index 0000000000..51bff2479e --- /dev/null +++ b/challenge-151/colin-crain/perl/ch-1.pl @@ -0,0 +1,118 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl
+#
+# no-diving-in-the-shallow-end.pl
+#
+# Binary Tree Depth
+# Submitted by: Mohammad S Anwar
+# You are given binary tree.
+#
+# Write a script to find the minimum depth.
+#
+# The minimum depth is the number of nodes from the root to the
+# nearest leaf node (node without any children).
+#
+# Example 1:
+#
+# Input: '1 | 2 3 | 4 5'
+#
+# 1
+# / \
+# 2 3
+# / \
+# 4 5
+#
+# Output: 2
+#
+# Example 2:
+#
+# Input: '1 | 2 3 | 4 * * 5 | * 6'
+#
+# 1
+# / \
+# 2 3
+# / \
+# 4 5
+# \
+# 6
+# Output: 3
+#
+# method:
+#
+# So... the robust way or the easy way? Whichis to say do we
+# build a tree model, perform a depth-first traversal and note
+# the depth of each node, keeping a running minimal on all leaf
+# nodes? Or do we work the serial flat data-structure instead?
+# In the serial format we have a breath-first order laid out
+# left-to-right
+#
+#
+# One thing different about this tree challenge is that here
+# wee are given example input in a breadth-first sreialized
+# string format. In it, we have levels separated by vertical
+# pipes, with nodes separated by spaces. Empty nodes are
+# indicated by asterisks; in this way the segment from the
+# second example "| 4 * * 5 |" reveals the thrid level has
+# four nodes and the middle two are null.
+#
+# At the end of the string remaining null nodes to fill out the
+# level are left inplicit and not signified. Although no
+# examples exist, the child nodes of a null node would also be
+# null and so indicated with asterisks, which are necessary to
+# unambiguously mark individual node placement within the
+# structure.
+#
+# All this amounts to a parsable flat format where the child
+# nodes have a mathematical relationship to the indices of the
+# parent: 2n+1 and 2n+2.
+#
+# If we traverse the tree from left to right we can check each
+# node, and, if both children are null we have found a leaf. As
+# the levels ascend from left-to-right the first leaf found
+# will have the minimum depth.
+#
+# © 2022 colin crain
+## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
+
+
+
+use warnings;
+use strict;
+use utf8;
+use feature ":5.26";
+use feature qw(signatures);
+no warnings 'experimental::signatures';
+
+
+
+my $input = shift ;
+say mindepth( parse( $input ) ) if defined $input;;
+
+sub parse ( $input ) {
+ return map { $_ eq '*' ? undef : $_ }
+ grep { $_ ne '|' }
+ split ' ', $input;
+}
+
+sub mindepth ( @tree ) {
+ my $level = 1 ;
+ my $count = 0 ;
+
+ for my $idx ( 0 .. $#tree ) {
+ return $level if ( defined $tree[$idx]
+ and not defined $tree[$idx * 2 + 1]
+ and not defined $tree[$idx * 2 + 2] ) ;
+ $level++ and $count = 0 if ++$count == 2 ** ($level-1) ;
+ }
+}
+
+
+
+use Test::More;
+
+is mindepth( parse('1 | 2 3 | 4 5') ), 2, 'ex-1';
+is mindepth( parse('1 | 2 3 | 4 * * 5 | * 6') ), 3, 'ex-2';
+is mindepth( parse('A | B C | D E F G | H I J L M N O P') ), 4, 'deeper';
+is mindepth( parse('X') ), 1, 'root';
+
+
+done_testing();
diff --git a/challenge-151/colin-crain/perl/ch-2.pl b/challenge-151/colin-crain/perl/ch-2.pl new file mode 100755 index 0000000000..a12aad87fe --- /dev/null +++ b/challenge-151/colin-crain/perl/ch-2.pl @@ -0,0 +1,118 @@ +#!/Users/colincrain/perl5/perlbrew/perls/perl-5.32.0/bin/perl
+#
+# daylight-robbery.pl
+#
+# Rob The House
+# Submitted by: Mohammad S Anwar
+# You are planning to rob a row of houses, always starting with the
+# first and moving in the same direction. However, you can’t rob
+# two adjacent houses.
+#
+# Write a script to find the highest possible gain that can be
+# achieved.
+#
+# Example 1:
+# Input: @valuables = (2, 4, 5);
+# Output: 7
+#
+# If we rob house (index=0) we get 2 and then the only house we can
+# rob is house (index=2) where we have 5. So the total valuables in
+# this case is (2 + 5) = 7.
+#
+# Example 2:
+# Input: @valuables = (4, 2, 3, 6, 5, 3);
+# Output: 13
+#
+# The best choice would be to first rob house (index=0) then rob
+# house (index=3) then finally house (index=5). This would give us
+# 4 + 6 + 3 =13.
+#
+# method:
+
+# In this version of the travelling burglar problem, wait, is that
+# a thing? I thought that was a thing. Oh well, in any case, the
+# goal here is to optimize our selection along an ordered sequence
+# governed by a set of rules:
+#
+# 1. we can ony proceed forward
+# 2. we must skip the next element in any movement.
+# 3. the goal is the highest sum of gathered elements
+#
+# There is no further governance on the selection of elements, but
+# some optimal emergent behavior can be derived to guide us to a
+# winning strategy. For example, from any element we should move
+# forward either 2 or 3 positions. We cannot move one, and any
+# position greater than 3 can be arrived at by some combination of
+# intermediatary steps: position 4 can be broken down into 2 + 2, 5
+# as 2 + 3 or 3 + 2. As all values are positive (or at least 0, but
+# not negative) there is never a downside to adding an intermediate
+# stopover.
+#
+# So 2 or 3 it is.
+#
+# After 2 or 3, however, there is a problem with looking ahead, as
+# the element at position n+4 is always dependant on the choices
+# made previously, as it can only be arrived at in one specific
+# manner. Furthermore, this predicate dependancy can be
+# indefinitely extended to the chain of all 2-separate values,
+# which can only be achieved by making the 2-selectiomn from the
+# very beginning. There are two such sequences in every list,
+# corresponding to the ood- and even-numbered indices, that
+# maximize the number of elements selected, that can only be
+# arrived at by making specific mutulaly-exclusive choices at the
+# beginning of the run.
+#
+# In short, in order to sum these sequences, each needs to be
+# started separately and run through completely, examining every
+# element. As they may also contain the maximal sum, then therefore
+# we need to look at every value before we can make the
+# determination of which pattern maximizes the sum.
+#
+# So we need to look at all the patterns first. There's no escaping
+# that. Or at least the whole list of values. Maybe not every
+# pattern, actually. But pruniing the search tree will be tricky if
+# it's even possible.
+#
+# It looks like we will need ot look at every pattern of 2- and
+# 3-jumps, starting at either the 0th or 1st position.
+#
+# As we are tasked with robbing real imaginary houses along a real
+# imaginary block we can assume the number of houses to be finite
+# and not excessively large. But the algorithm will bog down
+# eventually, just to put that out front.
+#
+#
+#
+#
+# © 2022 colin crain
+## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
+
+
+
+use warnings;
+use strict;
+use utf8;
+use feature ":5.26";
+use feature qw(signatures);
+no warnings 'experimental::signatures';
+
+
+our @arr = (
+1, 2, 3, 6, 5, 3, 8, 1, 1, 1,
+2, 3, 6, 5, 3, 8, 1, 1, 1, 2,
+3, 6, 5, 3, 8, 1, 1, 1, 2, 3,
+6, 5, 3, 8, 1, 1, 1, 2, 3, 6,
+5, 3, 8, 1, 1, 1, 2, 3, 6, 5,
+3, 8, 1, 1, 1, 2, 6, 5, 3, 8 );
+
+
+say lookahead( );
+
+sub lookahead ( $pos = -2, $sum = 0 ) {
+ return $sum if $pos > $#arr;
+ $sum += $arr[ $pos ] if $pos >= 0;
+ my $two = lookahead( $pos + 2, $sum ) ;
+ my $three = lookahead( $pos + 3, $sum ) ;
+ return $two > $three ? $two : $three ;
+}
+
diff --git a/challenge-151/colin-crain/raku/ch-1.raku b/challenge-151/colin-crain/raku/ch-1.raku new file mode 100755 index 0000000000..d305cf45e5 --- /dev/null +++ b/challenge-151/colin-crain/raku/ch-1.raku @@ -0,0 +1,77 @@ +#!/usr/bin/env perl6 +# +# +# 151-1-no-diving-in-the-shallow-end.raku +# +# +# +# © 2022 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN ( $input = '1 | 2 3 | 4 * * 5 | * 6' ) ; + +say mindepth( parse( $input ) ); + +sub parse ( $input ) { + $input .split(/\s+/) + .grep( * ne '|') + .map: {$_ eq '*' ?? Nil !! $_} ; +} + +sub mindepth ( @tree ) { + my ( $level, $count ) = ( 1, 0 ); + for @tree.keys -> $idx { + return $level if @tree[$idx].defined + and not @tree[$idx * 2 + 1].defined + and not @tree[$idx * 2 + 2].defined ; + + $level++ and $count = 0 if ++$count == 2 ** ($level-1); + } +} + +use Test; + +is mindepth( parse('1 | 2 3 | 4 5') ), 2, 'ex-1'; +is mindepth( parse('1 | 2 3 | 4 * * 5 | * 6') ), 3, 'ex-2'; +is mindepth( parse('A | B C | D E F G | H I J L M N O P') ), 4, 'deeper'; +is mindepth( parse('X') ), 1, 'root'; + + + + + + + + + + + + + + + + + +# my $input = shift ; +# say mindepth( parse( $input ) ) if defined $input;; +# +# sub parse ( $input ) { +# return map { $_ eq '*' ? undef : $_ } +# grep { $_ ne '|' } +# split ' ', $input; +# } +# +# sub mindepth ( @tree ) { +# my $level = 1 ; +# my $count = 0 ; +# +# for my $idx ( 0 .. $#tree ) { +# return $level if ( defined $tree[$idx] +# and not defined $tree[$idx * 2 + 1] +# and not defined $tree[$idx * 2 + 2] ) ; +# $level++ and $count = 0 if ++$count == 2 ** ($level-1) ; +# } +# } +# diff --git a/challenge-151/colin-crain/raku/ch-2.raku b/challenge-151/colin-crain/raku/ch-2.raku new file mode 100755 index 0000000000..34340002f3 --- /dev/null +++ b/challenge-151/colin-crain/raku/ch-2.raku @@ -0,0 +1,27 @@ +#!/usr/bin/env perl6 +# +# +# daylight-robbery.raku +# +# +# +# © 2022 colin crain +## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## + + + +unit sub MAIN ( *@arr ) ; + + +## test data +@arr = 1,2,3,4 if @arr.elems == 0; + +say lookahead(); + +sub lookahead( $pos = -2, $sum is copy = 0) { + return $sum if $pos > @arr.end; + $pos >= 0 && $sum += @arr[$pos]; + ( lookahead( $pos + $_, $sum ) for 2, 3 ).max +} + + diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 4fcc148c46..4ed5efca8e 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -1,17 +1,153 @@ { + "series" : [ + { + "data" : [ + { + "drilldown" : "Abigail", + "name" : "Abigail", + "y" : 2 + }, + { + "y" : 2, + "name" : "Alexander Pankoff", + "drilldown" : "Alexander Pankoff" + }, + { + "y" : 3, + "drilldown" : "Arne Sommer", + "name" : "Arne Sommer" + }, + { + "y" : 4, + "name" : "Athanasius", + "drilldown" : "Athanasius" + }, + { + "name" : "Cheok-Yin Fung", + "drilldown" : "Cheok-Yin Fung", + "y" : 1 + }, + { + "y" : 5, + "drilldown" : "Colin Crain", + "name" : "Colin Crain" + }, + { + "y" : 3, + "drilldown" : "Dave Jacoby", + "name" : "Dave Jacoby" + }, + { + "y" : 2, + "drilldown" : "Duncan C. White", + "name" : "Duncan C. White" + }, + { + "y" : 2, + "name" : "E. Choroba", + "drilldown" : "E. Choroba" + }, + { + "name" : "Feng Chang", + "drilldown" : "Feng Chang", + "y" : 1 + }, + { + "name" : "Flavio Poletti", + "drilldown" : "Flavio Poletti", + "y" : 6 + }, + { + "name" : "James Smith", + "drilldown" : "James Smith", + "y" : 3 + }, + { + "name" : "Jorg Sommrey", + "drilldown" : "Jorg Sommrey", + "y" : 2 + }, + { + "name" : "Laurent Rosenfeld", + "drilldown" : "Laurent Rosenfeld", + "y" : 3 + }, + { + "y" : 2, + "name" : "Lubos Kolouch", + "drilldown" : "Lubos Kolouch" + }, + { + "name" : "Mark Anderson", + "drilldown" : "Mark Anderson", + "y" : 2 + }, + { + "y" : 2, + "name" : "Marton Polgar", + "drilldown" : "Marton Polgar" + }, + { + "drilldown" : "Matthew Neleigh", + "name" : "Matthew Neleigh", + "y" : 2 + }, + { + "y" : 1, + "name" : "Mohammad S Anwar", + "drilldown" : "Mohammad S Anwar" + }, + { + "y" : 3, + "drilldown" : "Peter Campbell Smith", + "name" : "Peter Campbell Smith" + }, + { + "name" : "Roger Bell_West", + "drilldown" : "Roger Bell_West", + "y" : 5 + }, + { + "y" : 3, + "name" : "Simon Green", + "drilldown" : "Simon Green" + }, + { + "y" : 4, + "name" : "Ulrich Rieke", + "drilldown" : "Ulrich Rieke" + }, + { + "y" : 3, + "drilldown" : "W. Luis Mochan", + "name" : "W. Luis Mochan" + } + ], + "colorByPoint" : 1, + "name" : "The Weekly Challenge - 151" + } + ], + "tooltip" : { + "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>", + "followPointer" : 1, + "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>" + }, + "plotOptions" : { + "series" : { + "borderWidth" : 0, + "dataLabels" : { + "enabled" : 1, + "format" : "{point.y}" + } + } + }, "yAxis" : { "title" : { "text" : "Total Solutions" } }, - "chart" : { - "type" : "column" - }, "subtitle" : { - "text" : "[Champions: 24] Last updated at 2022-02-13 23:28:06 GMT" - }, - "title" : { - "text" : "The Weekly Challenge - 151" + "text" : "[Champions: 24] Last updated at 2022-02-13 23:35:27 GMT" }, "drilldown" : { "series" : [ @@ -22,18 +158,18 @@ 2 ] ], - "name" : "Abigail", - "id" : "Abigail" + "id" : "Abigail", + "name" : "Abigail" }, { + "name" : "Alexander Pankoff", "data" : [ [ "Perl", 2 ] ], - "id" : "Alexander Pankoff", - "name" : "Alexander Pankoff" + "id" : "Alexander Pankoff" }, { "name" : "Arne Sommer", @@ -50,8 +186,6 @@ ] }, { - "id" : "Athanasius", - "name" : "Athanasius", "data" : [ [ "Perl", @@ -61,31 +195,39 @@ "Raku", 2 ] - ] + ], + "id" : "Athanasius", + "name" : "Athanasius" }, { - "name" : "Cheok-Yin Fung", - "id" : "Cheok-Yin Fung", "data" : [ [ "Perl", 1 ] - ] + ], + "id" : "Cheok-Yin Fung", + "name" : "Cheok-Yin Fung" }, { "id" : "Colin Crain", - "name" : "Colin Crain", "data" : [ [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ], + [ "Blog", 1 ] - ] + ], + "name" : "Colin Crain" }, { - "id" : "Dave Jacoby", - "name" : "Dave Jacoby", "data" : [ [ "Perl", @@ -95,41 +237,42 @@ "Blog", 1 ] - ] + ], + "id" : "Dave Jacoby", + "name" : "Dave Jacoby" }, { - "id" : "Duncan C. White", - "name" : "Duncan C. White", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Duncan C. White", + "name" : "Duncan C. White" }, { - "name" : "E. Choroba", "id" : "E. Choroba", "data" : [ [ "Perl", 2 ] - ] + ], + "name" : "E. Choroba" }, { "name" : "Feng Chang", - "id" : "Feng Chang", "data" : [ [ "Raku", 1 ] - ] + ], + "id" : "Feng Chang" }, { "name" : "Flavio Poletti", - "id" : "Flavio Poletti", "data" : [ [ "Perl", @@ -143,9 +286,12 @@ "Blog", 2 ] - ] + ], + "id" : "Flavio Poletti" }, { + "name" : "James Smith", + "id" : "James Smith", "data" : [ [ "Perl", @@ -155,19 +301,17 @@ "Blog", 1 ] - ], - "name" : "James Smith", - "id" : "James Smith" + ] }, { + "name" : "Jorg Sommrey", + "id" : "Jorg Sommrey", "data" : [ [ "Perl", 2 ] - ], - "name" : "Jorg Sommrey", - "id" : "Jorg Sommrey" + ] }, { "data" : [ @@ -184,18 +328,18 @@ 1 ] ], - "name" : "Laurent Rosenfeld", - "id" : "Laurent Rosenfeld" + "id" : "Laurent Rosenfeld", + "name" : "Laurent Rosenfeld" }, { + "name" : "Lubos Kolouch", + "id" : "Lubos Kolouch", "data" : [ [ "Perl", 2 ] - ], - "name" : "Lubos Kolouch", - "id" : "Lubos Kolouch" + ] }, { "data" : [ @@ -218,14 +362,14 @@ "name" : "Marton Polgar" }, { - "id" : "Matthew Neleigh", - "name" : "Matthew Neleigh", "data" : [ [ "Perl", 2 ] - ] + ], + "id" : "Matthew Neleigh", + "name" : "Matthew Neleigh" }, { "data" : [ @@ -234,8 +378,8 @@ 1 ] ], - "name" : "Mohammad S Anwar", - "id" : "Mohammad S Anwar" + "id" : "Mohammad S Anwar", + "name" : "Mohammad S Anwar" }, { "data" : [ @@ -252,6 +396,8 @@ "name" : "Peter Campbell Smith" }, { + "name" : "Roger Bell_West", + "id" : "Roger Bell_West", "data" : [ [ "Perl", @@ -265,11 +411,10 @@ "Blog", 1 ] - ], - "name" : "Roger Bell_West", - "id" : "Roger Bell_West" + ] }, { + "name" : "Simon Green", "data" : [ [ "Perl", @@ -280,11 +425,9 @@ 1 ] ], - "id" : "Simon Green", - "name" : "Simon Green" + "id" : "Simon Green" }, { - "id" : "Ulrich Rieke", "name" : "Ulrich Rieke", "data" : [ [ @@ -295,9 +438,11 @@ "Raku", 2 ] - ] + ], + "id" : "Ulrich Rieke" }, { + "name" : "W. Luis Mochan", "data" : [ [ "Perl", @@ -308,157 +453,20 @@ 1 ] ], - "name" : "W. Luis Mochan", "id" : "W. Luis Mochan" } ] }, - "tooltip" : { - "followPointer" : 1, - "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>", - "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>" - }, "legend" : { "enabled" : 0 }, - "xAxis" : { - "type" : "category" + "chart" : { + "type" : "column" }, - "plotOptions" : { - "series" : { - "borderWidth" : 0, - "dataLabels" : { - "enabled" : 1, - "format" : "{point.y}" - } - } + "title" : { + "text" : "The Weekly Challenge - 151" }, - "series" : [ - { - "name" : "The Weekly Challenge - 151", - "colorByPoint" : 1, - "data" : [ - { - "y" : 2, - "drilldown" : "Abigail", - "name" : "Abigail" - }, - { - "y" : 2, - "drilldown" : "Alexander Pankoff", - "name" : "Alexander Pankoff" - }, - { - "drilldown" : "Arne Sommer", - "name" : "Arne Sommer", - "y" : 3 - }, - { - "y" : 4, - "drilldown" : "Athanasius", - "name" : "Athanasius" - }, - { - "drilldown" : "Cheok-Yin Fung", - "name" : "Cheok-Yin Fung", - "y" : 1 - }, - { - "name" : "Colin Crain", - "drilldown" : "Colin Crain", - "y" : 1 - }, - { - "drilldown" : "Dave Jacoby", - "name" : "Dave Jacoby", - "y" : 3 - }, - { - "y" : 2, - "name" : "Duncan C. White", - "drilldown" : "Duncan C. White" - }, - { - "name" : "E. Choroba", - "drilldown" : "E. Choroba", - "y" : 2 - }, - { - "y" : 1, - "drilldown" : "Feng Chang", - "name" : "Feng Chang" - }, - { - "drilldown" : "Flavio Poletti", - "name" : "Flavio Poletti", - "y" : 6 - }, - { - "y" : 3, - "name" : "James Smith", - "drilldown" : "James Smith" - }, - { - "y" : 2, - "name" : "Jorg Sommrey", - "drilldown" : "Jorg Sommrey" - }, - { - "drilldown" : "Laurent Rosenfeld", - "name" : "Laurent Rosenfeld", - "y" : 3 - }, - { - "y" : 2, - "drilldown" : "Lubos Kolouch", - "name" : "Lubos Kolouch" - }, - { - "drilldown" : "Mark Anderson", - "name" : "Mark Anderson", - "y" : 2 - }, - { - "name" : "Marton Polgar", - "drilldown" : "Marton Polgar", - "y" : 2 - }, - { - "y" : 2, - "name" : "Matthew Neleigh", - "drilldown" : "Matthew Neleigh" - }, - { - "name" : "Mohammad S Anwar", - "drilldown" : "Mohammad S Anwar", - "y" : 1 - }, - { - "name" : "Peter Campbell Smith", - "drilldown" : "Peter Campbell Smith", - "y" : 3 - }, - { - "y" : 5, - "name" : "Roger Bell_West", - "drilldown" : "Roger Bell_West" - }, - { - "y" : 3, - "drilldown" : "Simon Green", - "name" : "Simon Green" - }, - { - "y" : 4, - "name" : "Ulrich Rieke", - "drilldown" : "Ulrich Rieke" - }, - { - "y" : 3, - "drilldown" : "W. Luis Mochan", - "name" : "W. Luis Mochan" - } - ] - } - ] + "xAxis" : { + "type" : "category" + } } diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 1fdaa9d3bc..acb3bdd6f2 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -1,22 +1,13 @@ { - "title" : { - "text" : "The Weekly Challenge Contributions [2019 - 2022]" + "yAxis" : { + "title" : { + "text" : null + }, + "min" : 0 }, "tooltip" : { "pointFormat" : "<b>{point.y:.0f}</b>" }, - "xAxis" : { - "labels" : { - "style" : { - "fontSize" : "13px", - "fontFamily" : "Verdana, sans-serif" - } - }, - "type" : "category" - }, - "legend" : { - "enabled" : "false" - }, "series" : [ { "data" : [ @@ -26,38 +17,47 @@ ], |
