aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyoungjin JEON <jeongoon@gmail.com>2020-09-24 22:45:38 +1000
committerMyoungjin JEON <jeongoon@gmail.com>2020-09-24 22:45:38 +1000
commit811f5ea123eb6c84b2856d99a9983d083789e8d5 (patch)
tree80070eadd63e441da049e6d908aeace65bd67f6c
parent94471ad8790745216a12f45436db34113aa55bbb (diff)
parentb7e37689a4d9f7a80b263a58ae289c56afe3aa34 (diff)
downloadperlweeklychallenge-club-811f5ea123eb6c84b2856d99a9983d083789e8d5.tar.gz
perlweeklychallenge-club-811f5ea123eb6c84b2856d99a9983d083789e8d5.tar.bz2
perlweeklychallenge-club-811f5ea123eb6c84b2856d99a9983d083789e8d5.zip
Merge remote-tracking branch 'upstream/master'
-rwxr-xr-xchallenge-079/cristian-heredia/perl/ch-1.pl59
-rwxr-xr-xchallenge-079/dave-jacoby/perl/ch-1.pl30
-rwxr-xr-xchallenge-079/dave-jacoby/perl/ch-2.pl70
-rw-r--r--challenge-079/laurent-rosenfeld/blog.txt1
-rw-r--r--challenge-079/laurent-rosenfeld/perl/ch-1.pl10
-rw-r--r--challenge-079/laurent-rosenfeld/perl/ch-2.pl50
-rw-r--r--challenge-079/laurent-rosenfeld/raku/ch-1.sh1
-rw-r--r--challenge-079/laurent-rosenfeld/raku/ch-2.raku32
-rw-r--r--challenge-079/markus-holzer/raku/ch-2.raku19
-rw-r--r--stats/pwc-current.json227
-rw-r--r--stats/pwc-language-breakdown-summary.json80
-rw-r--r--stats/pwc-language-breakdown.json1152
-rw-r--r--stats/pwc-leaders.json740
-rw-r--r--stats/pwc-summary-1-30.json34
-rw-r--r--stats/pwc-summary-121-150.json102
-rw-r--r--stats/pwc-summary-151-180.json30
-rw-r--r--stats/pwc-summary-181-210.json80
-rw-r--r--stats/pwc-summary-31-60.json44
-rw-r--r--stats/pwc-summary-61-90.json28
-rw-r--r--stats/pwc-summary-91-120.json128
-rw-r--r--stats/pwc-summary.json442
21 files changed, 1841 insertions, 1518 deletions
diff --git a/challenge-079/cristian-heredia/perl/ch-1.pl b/challenge-079/cristian-heredia/perl/ch-1.pl
new file mode 100755
index 0000000000..30e2136aa5
--- /dev/null
+++ b/challenge-079/cristian-heredia/perl/ch-1.pl
@@ -0,0 +1,59 @@
+#You are given a positive number $N.
+#Write a script to count the total number of set bits of the binary representations of all numbers from 1 to $N and return $total_count_set_bit % 1000000007.
+
+ #Input: $N = 3
+
+ #Explanation: First find out the set bit counts of all numbers i.e. 1, 2 and 3.
+
+ # Decimal: 1
+ # Binary: 01
+ # Set Bit Count: 1
+
+ # Decimal: 2
+ # Binary: 10
+ # Set Bit Count: 1
+
+ # Decimal: 3
+ # Binary: 11
+ # Set Bit Count: 2
+
+ # Total set bit count: 1 + 1 + 2 = 4
+
+ #Output: Your script should print `4` as `4 % 1000000007 = 4`.
+
+use strict;
+use warnings;
+use Data::Dumper;
+
+#variables
+my $N = 3;
+my $bin;
+my @array;
+my $count = 0;
+
+
+convertBinary();
+sub convertBinary {
+
+ foreach(my $i = 1; $i <= $N; $i++) {
+ $bin = sprintf ("%b", $i);
+ @array = ();
+ @array = split //, $bin;
+ countBit();
+ }
+
+ print "output: $count\n";
+}
+
+sub countBit {
+
+ foreach(my $j = 0; $j < @array; $j++) {
+ if ($array[$j] == 1) {
+ $count++;
+ }
+ }
+}
+
+
+
+
diff --git a/challenge-079/dave-jacoby/perl/ch-1.pl b/challenge-079/dave-jacoby/perl/ch-1.pl
new file mode 100755
index 0000000000..b1e4bff87e
--- /dev/null
+++ b/challenge-079/dave-jacoby/perl/ch-1.pl
@@ -0,0 +1,30 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use feature qw{ say signatures state };
+no warnings qw{ experimental };
+
+use Carp;
+use List::Util qw{ sum };
+use Getopt::Long;
+
+my $n = 4;
+GetOptions( 'n=i' => \$n, );
+croak 'Non-positive number' if $n < 0;
+
+my $total = count_set_bits($n);
+say $total;
+
+sub count_set_bits( $n ) {
+ my $total = 0;
+ my $t = 0;
+ for my $i ( 0 .. $n ) {
+ my $b = sprintf '%b', $i;
+ my $c = sum split m{|}, $b;
+ $total += $c;
+ $t = $total % 1000000007;
+ }
+
+ return $t;
+}
diff --git a/challenge-079/dave-jacoby/perl/ch-2.pl b/challenge-079/dave-jacoby/perl/ch-2.pl
new file mode 100755
index 0000000000..b2b8265e48
--- /dev/null
+++ b/challenge-079/dave-jacoby/perl/ch-2.pl
@@ -0,0 +1,70 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use feature qw{ say signatures state };
+no warnings qw{ experimental };
+
+use Getopt::Long;
+use List::Util qw{ max sum0 };
+
+my @n = grep { $_ >= 1 } @ARGV;
+@n = ( 2, 1, 4, 1, 2, 5 ) unless scalar @n;
+
+# make_histogram(@n);
+my $trapped = trap_rain_water(@n);
+
+my $units = $trapped == 1 ? 'unit' : 'units';
+say qq{$trapped $units trapped};
+
+sub make_histogram ( @n ) {
+ my $max = max @n;
+ say '';
+ for my $i ( reverse 1 .. $max ) {
+ my @h = map { $i <= $_ ? '#' : ' ' } @n;
+ say join ' ', $i, @h;
+ }
+ say join '-', ' ', map { '-' } @n;
+ say join ' ', ' ', @n;
+ say '';
+}
+
+sub trap_rain_water ( @n ) {
+ my $max = max @n;
+ my $s = scalar @n;
+ my $c = 0;
+
+ my @hist;
+
+ for my $i ( reverse 1 .. $max ) {
+ my $z = sum0 map { $i <= $_ ? 1 : 0 } @n;
+ my @h;
+ my $hh = [];
+ push $hh->@*, $i, '';
+
+ for my $j ( 0 .. $s - 1 ) {
+ my $e = $n[$j]; # equals
+ my $p = $e >= $i ? 1 : 0; # is peak
+
+ my @lt = @n[ 0 .. $j - 1 ];
+ my @gt = @n[ $j + 1 .. $s - 1 ];
+ my $lt = scalar grep { $_ >= $i } @lt; # is peak to left
+ my $gt = scalar grep { $_ >= $i } @gt; # is peak to right
+ my $t = $p != 1 && $lt > 0 && $gt > 0 ? 1 : 0; # has trapped
+ $c += $t;
+
+ push @h, $e >= $i ? '#' : $t;
+ my $v = ' ';
+ $v = '#' if $p;
+ $v = '.' if $t;
+ push $hh->@*, $v;
+ }
+
+ push @hist, $hh;
+ }
+
+ say join "\n", map { join ' ', $_->@* } @hist, [], [ ' ', '', @n ];
+ say '';
+
+ return $c;
+}
diff --git a/challenge-079/laurent-rosenfeld/blog.txt b/challenge-079/laurent-rosenfeld/blog.txt
new file mode 100644
index 0000000000..15f7c0b465
--- /dev/null
+++ b/challenge-079/laurent-rosenfeld/blog.txt
@@ -0,0 +1 @@
+http://blogs.perl.org/users/laurent_r/2020/09/perl-weekly-challenge-79-count-set-bits-and-trapped-rain-water.html
diff --git a/challenge-079/laurent-rosenfeld/perl/ch-1.pl b/challenge-079/laurent-rosenfeld/perl/ch-1.pl
new file mode 100644
index 0000000000..4033707433
--- /dev/null
+++ b/challenge-079/laurent-rosenfeld/perl/ch-1.pl
@@ -0,0 +1,10 @@
+use strict;
+use warnings;
+use feature "say";
+
+my $n = shift;
+my $sum;
+for my $num (1..$n) {
+ $sum += $_ for split '', sprintf "%b", $num;
+}
+say $sum % 1000000007;
diff --git a/challenge-079/laurent-rosenfeld/perl/ch-2.pl b/challenge-079/laurent-rosenfeld/perl/ch-2.pl
new file mode 100644
index 0000000000..33f6f1cc2e
--- /dev/null
+++ b/challenge-079/laurent-rosenfeld/perl/ch-2.pl
@@ -0,0 +1,50 @@
+use strict;
+use warnings;
+use feature "say";
+
+my @a = @ARGV > 1 ? @ARGV : ( 2, 1, 4, 5, 3, 7);
+draw_histo(@a);
+say "Rain capacity is: ", capacity(@a);
+
+sub max {
+ my @vals = @_;
+ my $max = shift @vals;
+ for my $val (@vals) {
+ $max = $val if $val > $max;
+ }
+ return $max;
+}
+
+sub min2 {
+ $_[0] < $_[1] ? $_[0] : $_[1];
+}
+
+sub draw_histo {
+ my @in = @_;
+ my $max_val = max @in;
+ say "";
+ for my $ordinate (reverse 1..$max_val) {
+ print $ordinate;
+ for my $i (0..$#in) {
+ print $in[$i] >= $ordinate ? " # " : " ";
+ }
+ say "";
+ }
+ say " =" x scalar @in;
+ say " ", join " ", @in;
+ say "";
+}
+
+sub capacity {
+ my @in = @_;
+ my $left_max = $in[0];
+ my $total = 0;
+ for my $i (1..$#in-1) {
+ $left_max = $in[$i] and next if $in[$i] > $left_max;
+ my $right_max = max @in[$i+1..$#in];
+ my $col = min2($left_max, $right_max) - $in[$i];
+ next if $col < 0;
+ $total += $col;
+ }
+ return $total
+}
diff --git a/challenge-079/laurent-rosenfeld/raku/ch-1.sh b/challenge-079/laurent-rosenfeld/raku/ch-1.sh
new file mode 100644
index 0000000000..c6f7baba11
--- /dev/null
+++ b/challenge-079/laurent-rosenfeld/raku/ch-1.sh
@@ -0,0 +1 @@
+raku -e 'say ([+] map { .fmt("%b").comb.sum }, 1..@*ARGS[0]) % 1000000007'
diff --git a/challenge-079/laurent-rosenfeld/raku/ch-2.raku b/challenge-079/laurent-rosenfeld/raku/ch-2.raku
new file mode 100644
index 0000000000..c7d571f9ee
--- /dev/null
+++ b/challenge-079/laurent-rosenfeld/raku/ch-2.raku
@@ -0,0 +1,32 @@
+use v6;
+
+my @a = @*ARGS.elems > 1 ?? @*ARGS !! (2, 1, 4, 1, 2, 5);
+draw-histo(@a);
+say "Rain capacity is: ", capacity(@a);
+
+
+sub draw-histo (@in) {
+ my $max-val = @in.max;
+ say "";
+ for (1..$max-val).reverse -> $ordinate {
+ print $ordinate;
+ for 0..@in.end -> $i {
+ print @in[$i] >= $ordinate ?? " # " !! " ";
+ }
+ say "";
+ }
+ say " =" x @in.elems;
+ say " ", join " ", @in, "\n";
+}
+
+sub capacity (@in) {
+ my $left-max = @in[0];
+ my $total = 0;
+ for 1..@in.end-1 -> $i {
+ $left-max = @in[$i] and next if @in[$i] > $left-max;
+ my $right-max = max @in[$i+1..@in.end];
+ my $col = min($left-max, $right-max) - @in[$i];
+ $total += $col if $col > 0;
+ }
+ return $total
+}
diff --git a/challenge-079/markus-holzer/raku/ch-2.raku b/challenge-079/markus-holzer/raku/ch-2.raku
index d674dca8af..c3a961e708 100644
--- a/challenge-079/markus-holzer/raku/ch-2.raku
+++ b/challenge-079/markus-holzer/raku/ch-2.raku
@@ -1,9 +1,26 @@
unit sub MAIN( *@N where @N.all ~~ Int );
+my $max = @N.max;
+
+my @histo = reverse [Z]
+ (' ', '-', |(1..$max) ),
+ |@N.map: { $_, '-', |('#' xx $_), |(' ' xx ($max - $_)) };
+
+my @pretty = @histo.map({
+ .join('')
+ .subst(/ <?after '#'> ( \s+ ) <?before '#'> /, { '~' x .chars }, :g)
+ .subst('', ' ', :g )});
+
+
+.say and .indices('~').elems.say with @pretty.join("\n");
+
+# This was my first attempt before I realized we're supposed to
+# print the histogram too and I can just count the ~ in the output
+
sub index-find { @N.pairs.grep( *.value >= $^h ).map: *.key }
sub index-diff { ($^i.cache.skip >>->> $^i).map: * - 1 }
-say (@N.max...0)
+say ($max...0)
.map( &index-find )
.map( &index-diff )
.flat
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index f35dcc31e2..f026d2c614 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,12 +1,31 @@
{
- "title" : {
- "text" : "Perl Weekly Challenge - 079"
+ "chart" : {
+ "type" : "column"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "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/>"
+ },
+ "xAxis" : {
+ "type" : "category"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "subtitle" : {
+ "text" : "[Champions: 21] Last updated at 2020-09-24 11:19:53 GMT"
},
"drilldown" : {
"series" : [
{
- "name" : "Abigail",
"id" : "Abigail",
+ "name" : "Abigail",
"data" : [
[
"Perl",
@@ -21,28 +40,48 @@
2
]
],
- "name" : "Andrew Shitov",
- "id" : "Andrew Shitov"
+ "id" : "Andrew Shitov",
+ "name" : "Andrew Shitov"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ],
+ "name" : "Cristina Heredia",
+ "id" : "Cristina Heredia"
},
{
- "name" : "Dave Cross",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
"id" : "Dave Cross",
+ "name" : "Dave Cross"
+ },
+ {
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "name" : "Dave Jacoby",
+ "id" : "Dave Jacoby"
},
{
- "name" : "E. Choroba",
- "id" : "E. Choroba",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "name" : "E. Choroba",
+ "id" : "E. Choroba"
},
{
"data" : [
@@ -55,22 +94,22 @@
2
]
],
- "id" : "Flavio Poletti",
- "name" : "Flavio Poletti"
+ "name" : "Flavio Poletti",
+ "id" : "Flavio Poletti"
},
{
- "id" : "James Smith",
- "name" : "James Smith",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "name" : "James Smith",
+ "id" : "James Smith"
},
{
- "name" : "Kang-min Liu",
"id" : "Kang-min Liu",
+ "name" : "Kang-min Liu",
"data" : [
[
"Raku",
@@ -81,6 +120,24 @@
{
"data" : [
[
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Laurent Rosenfeld",
+ "id" : "Laurent Rosenfeld"
+ },
+ {
+ "data" : [
+ [
"Raku",
2
]
@@ -89,8 +146,8 @@
"id" : "Mark Anderson"
},
{
- "id" : "Markus Holzer",
"name" : "Markus Holzer",
+ "id" : "Markus Holzer",
"data" : [
[
"Raku",
@@ -99,8 +156,6 @@
]
},
{
- "name" : "Mohammad S Anwar",
- "id" : "Mohammad S Anwar",
"data" : [
[
"Perl",
@@ -110,17 +165,19 @@
"Raku",
1
]
- ]
+ ],
+ "id" : "Mohammad S Anwar",
+ "name" : "Mohammad S Anwar"
},
{
+ "name" : "Myoungjin Jeon",
+ "id" : "Myoungjin Jeon",
"data" : [
[
"Raku",
1
]
- ],
- "id" : "Myoungjin Jeon",
- "name" : "Myoungjin Jeon"
+ ]
},
{
"data" : [
@@ -143,6 +200,8 @@
"name" : "Nuno Vieira"
},
{
+ "name" : "Roger Bell_West",
+ "id" : "Roger Bell_West",
"data" : [
[
"Perl",
@@ -156,33 +215,29 @@
"Blog",
1
]
- ],
- "id" : "Roger Bell_West",
- "name" : "Roger Bell_West"
+ ]
},
{
+ "id" : "Simon Proctor",
+ "name" : "Simon Proctor",
"data" : [
[
"Raku",
2
]
- ],
- "name" : "Simon Proctor",
- "id" : "Simon Proctor"
+ ]
},
{
+ "name" : "Steven Wilson",
+ "id" : "Steven Wilson",
"data" : [
[
"Perl",
1
]
- ],
- "id" : "Steven Wilson",
- "name" : "Steven Wilson"
+ ]
},
{
- "id" : "Ulrich Rieke",
- "name" : "Ulrich Rieke",
"data" : [
[
"Perl",
@@ -192,11 +247,13 @@
"Raku",
2
]
- ]
+ ],
+ "id" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke"
},
{
- "name" : "Vinod Kumar K",
"id" : "Vinod Kumar K",
+ "name" : "Vinod Kumar K",
"data" : [
[
"Perl",
@@ -206,51 +263,64 @@
}
]
},
- "chart" : {
- "type" : "column"
- },
"series" : [
{
"name" : "Perl Weekly Challenge - 079",
+ "colorByPoint" : 1,
"data" : [
{
- "name" : "Abigail",
+ "drilldown" : "Abigail",
"y" : 2,
- "drilldown" : "Abigail"
+ "name" : "Abigail"
},
{
+ "name" : "Andrew Shitov",
"drilldown" : "Andrew Shitov",
- "y" : 2,
- "name" : "Andrew Shitov"
+ "y" : 2
+ },
+ {
+ "name" : "Cristina Heredia",
+ "y" : 1,
+ "drilldown" : "Cristina Heredia"
},
{
+ "name" : "Dave Cross",
"drilldown" : "Dave Cross",
+ "y" : 2
+ },
+ {
"y" : 2,
- "name" : "Dave Cross"
+ "drilldown" : "Dave Jacoby",
+ "name" : "Dave Jacoby"
},
{
- "drilldown" : "E. Choroba",
+ "name" : "E. Choroba",
"y" : 2,
- "name" : "E. Choroba"
+ "drilldown" : "E. Choroba"
},
{
- "name" : "Flavio Poletti",
"y" : 4,
- "drilldown" : "Flavio Poletti"
+ "drilldown" : "Flavio Poletti",
+ "name" : "Flavio Poletti"
},
{
- "y" : 2,
+ "name" : "James Smith",
"drilldown" : "James Smith",
- "name" : "James Smith"
+ "y" : 2
},
{
- "name" : "Kang-min Liu",
+ "y" : 2,
"drilldown" : "Kang-min Liu",
- "y" : 2
+ "name" : "Kang-min Liu"
+ },
+ {
+ "name" : "Laurent Rosenfeld",
+ "drilldown" : "Laurent Rosenfeld",
+ "y" : 5
},
{
- "y" : 2,
"drilldown" : "Mark Anderson",
+ "y" : 2,
"name" : "Mark Anderson"
},
{
@@ -264,14 +334,14 @@
"y" : 2
},
{
- "y" : 1,
"drilldown" : "Myoungjin Jeon",
+ "y" : 1,
"name" : "Myoungjin Jeon"
},
{
- "name" : "Niels van Dijke",
+ "y" : 2,
"drilldown" : "Niels van Dijke",
- "y" : 2
+ "name" : "Niels van Dijke"
},
{
"drilldown" : "Nuno Vieira",
@@ -289,50 +359,33 @@
"name" : "Simon Proctor"
},
{
- "name" : "Steven Wilson",
+ "y" : 1,
"drilldown" : "Steven Wilson",
- "y" : 1
+ "name" : "Steven Wilson"
},
{
- "y" : 3,
+ "name" : "Ulrich Rieke",
"drilldown" : "Ulrich Rieke",
- "name" : "Ulrich Rieke"
+ "y" : 3
},
{
- "name" : "Vinod Kumar K",
"y" : 1,
- "drilldown" : "Vinod Kumar K"
+ "drilldown" : "Vinod Kumar K",
+ "name" : "Vinod Kumar K"
}
- ],
- "colorByPoint" : 1
+ ]
}
],
+ "title" : {
+ "text" : "Perl Weekly Challenge - 079"
+ },
"plotOptions" : {
"series" : {
+ "borderWidth" : 0,
"dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
- },
- "borderWidth" : 0
- }
- },
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
+ "format" : "{point.y}",
+ "enabled" : 1
+ }
}
- },
- "xAxis" : {
- "type" : "category"
- },
- "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/>"
- },
- "subtitle" : {
- "text" : "[Champions: 18] Last updated at 2020-09-23 17:31:28 GMT"
- },
- "legend" : {
- "enabled" : 0
}
}
diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json
index 9929af82db..5cc1a0e2ad 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -2,62 +2,62 @@
"chart" : {
"type" : "column"
},
+ "yAxis" : {
+ "title" : {
+ "text" : null
+ },
+ "min" : 0
+ },
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
+ },
+ "xAxis" : {
+ "type" : "category",
+ "labels" : {
+ "style" : {
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
+ }
+ }
+ },
+ "legend" : {
+ "enabled" : "false"
+ },
+ "subtitle" : {
+ "text" : "Last updated at 2020-09-24 11:19:53 GMT"
+ },
"series" : [
{
+ "dataLabels" : {
+ "align" : "right",
+ "style" : {
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
+ },
+ "color" : "#FFFFFF",
+ "format" : "{point.y:.0f}",
+ "y" : 10,
+ "enabled" : "true",
+ "rotation" : -90
+ },
"data" : [
[
"Blog",
- 987
+ 988
],
[
"Perl",
- 3339
+ 3344
],
[
"Raku",
- 2173
+ 2175
]
],
- "name" : "Contributions",
- "dataLabels" : {
- "color" : "#FFFFFF",
- "rotation" : -90,
- "enabled" : "true",
- "format" : "{point.y:.0f}",
- "y" : 10,
- "style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- },
- "align" : "right"
- }
+ "name" : "Contributions"
}
],
"title" : {
"text" : "Perl Weekly Challenge Contributions [2019 - 2020]"
- },
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
- },
- "xAxis" : {
- "labels" : {
- "style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- }
- },
- "type" : "category"
- },
- "subtitle" : {
- "text" : "Last updated at 2020-09-23 17:31:28 GMT"
- },
- "legend" : {
- "enabled" : "false"
- },
- "yAxis" : {
- "min" : 0,
- "title" : {
- "text" : null
- }
}
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index e872f60316..05be062712 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -1,7 +1,435 @@
{
+ "xAxis" : {
+ "type" : "category"
+ },
+ "tooltip" : {
+ "headerFormat" : "<span style=\"font-size:11px\"></span>",
+ "followPointer" : "true",
+ "pointFormat" : "<span style=\"color:{point.color}\">Challenge {point.name}</span>: <b>{point.y:f}</b><br/>"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "plotOptions" : {
+ "series" : {
+ "borderWidth" : 0,
+ "dataLabels" : {
+ "format" : "{point.y}",
+ "enabled" : 1
+ }
+ }
+ },
"title" : {
"text" : "Perl Weekly Challenge Language"
},
+ "series" : [
+ {
+ "name" : "Perl Weekly Challenge Languages",
+ "data" : [
+ {
+ "drilldown" : "001",
+ "y" : 142,
+ "name" : "#001"
+ },
+ {
+ "name" : "#002",
+ "y" : 111,
+ "drilldown" : "002"
+ },
+ {
+ "y" : 71,
+ "drilldown" : "003",
+ "name" : "#003"
+ },
+ {
+ "name" : "#004",
+ "y" : 91,
+ "drilldown" : "004"
+ },
+ {
+ "name" : "#005",
+ "y" : 72,
+ "drilldown" : "005"
+ },
+ {
+ "name" : "#006",
+ "y" : 52,
+ "drilldown" : "006"
+ },
+ {
+ "y" : 59,
+ "drilldown" : "007",
+ "name" : "#007"
+ },
+ {
+ "drilldown" : "008",
+ "y" : 72,
+ "name" : "#008"
+ },
+ {
+ "y" : 70,
+ "drilldown" : "009",
+ "name" : "#009"
+ },
+ {
+ "name" : "#010",
+ "y" : 60,
+ "drilldown" : "010"
+ },
+ {
+ "name" : "#011",
+ "drilldown" : "011",
+ "y" : 79
+ },
+ {
+ "name" : "#012",
+ "drilldown" : "012",
+ "y" : 83
+ },
+ {
+ "drilldown" : "013",
+ "y" : 78,
+ "name" : "#013"
+ },
+ {
+ "y" : 96,
+ "drilldown" : "014",
+ "name" : "#014"
+ },
+ {
+ "name" : "#015",
+ "y" : 93,
+ "drilldown" : "015"
+ },
+ {
+ "name" : "#016",
+ "drilldown" : "016",
+ "y" : 66
+ },
+ {
+ "name" : "#017",
+ "drilldown" : "017",
+ "y" : 79
+ },
+ {
+ "name" : "#018",
+ "y" : 76,
+ "drilldown" : "018"
+ },
+ {
+ "y" : 97,
+ "drilldown" : "019",
+ "name" : "#019"
+ },
+ {
+ "y" : 95,
+ "drilldown" : "020",
+ "name" : "#020"
+ },