aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2022-07-29 19:00:29 +0100
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2022-07-29 19:00:29 +0100
commit148cacf688e1c0e2d191362653c01db93cae56cb (patch)
tree4c0b3f4c07fd8804d11aa85b8dcffdef9cf0b764
parent2ba2a46f6d2eb7ecc4d3db088505df6e86665e75 (diff)
downloadperlweeklychallenge-club-148cacf688e1c0e2d191362653c01db93cae56cb.tar.gz
perlweeklychallenge-club-148cacf688e1c0e2d191362653c01db93cae56cb.tar.bz2
perlweeklychallenge-club-148cacf688e1c0e2d191362653c01db93cae56cb.zip
- Added solutions to the task "Perfect Totient Numbers".
-rw-r--r--challenge-175/mohammad-anwar/java/theweeklychallenge/FirstPerfectTotient.java81
-rw-r--r--challenge-175/mohammad-anwar/perl/ch-2.pl68
-rw-r--r--challenge-175/mohammad-anwar/python/ch-2.py63
-rw-r--r--challenge-175/mohammad-anwar/raku/ch-2.raku61
-rw-r--r--challenge-175/mohammad-anwar/swift/ch-2.swift91
-rw-r--r--stats/pwc-current.json174
-rw-r--r--stats/pwc-language-breakdown-summary.json86
-rw-r--r--stats/pwc-language-breakdown.json2412
-rw-r--r--stats/pwc-leaders.json720
-rw-r--r--stats/pwc-summary-1-30.json108
-rw-r--r--stats/pwc-summary-121-150.json88
-rw-r--r--stats/pwc-summary-151-180.json38
-rw-r--r--stats/pwc-summary-181-210.json84
-rw-r--r--stats/pwc-summary-211-240.json92
-rw-r--r--stats/pwc-summary-241-270.json80
-rw-r--r--stats/pwc-summary-31-60.json88
-rw-r--r--stats/pwc-summary-61-90.json32
-rw-r--r--stats/pwc-summary-91-120.json98
-rw-r--r--stats/pwc-summary.json578
19 files changed, 2703 insertions, 2339 deletions
diff --git a/challenge-175/mohammad-anwar/java/theweeklychallenge/FirstPerfectTotient.java b/challenge-175/mohammad-anwar/java/theweeklychallenge/FirstPerfectTotient.java
new file mode 100644
index 0000000000..2c8027e28c
--- /dev/null
+++ b/challenge-175/mohammad-anwar/java/theweeklychallenge/FirstPerfectTotient.java
@@ -0,0 +1,81 @@
+package theweeklychallenge;
+
+/*
+
+Week 175:
+
+ https://theweeklychallenge.org/blog/perl-weekly-challenge-175
+
+Task #2: Perfect Totient Numbers
+
+ Write a script to generate first 20 Perfect Totient Numbers.
+
+Compile and Run:
+
+ mohammad-anwar/java$ javac theweeklychallenge/FirstPerfectTotient.java
+ mohammad-anwar/java$ java theweeklychallenge.FirstPerfectTotient
+
+*/
+
+import java.util.Arrays;
+import java.util.ArrayList;
+import junit.framework.TestCase;
+import static junit.framework.Assert.*;
+
+public class FirstPerfectTotient extends TestCase {
+
+ public static void main(String[] args) {
+ junit.textui.TestRunner.run(
+ theweeklychallenge.FirstPerfectTotient.class);
+ }
+
+ public void testFirstPerfectTotient() {
+ Integer[] got = firstPerfectTotient(20);
+ Integer[] exp = {
+ 3, 9, 15, 27, 39, 81, 111, 183, 243,
+ 255, 327, 363, 471, 729, 2187, 2199,
+ 3063, 4359, 4375, 5571
+ };
+
+ assertEquals(Arrays.toString(exp), Arrays.toString(got));
+ }
+
+ public static int gcd(int m, int n) {
+ return n == 0 ? m : gcd(n, m % n);
+ }
+
+ public static boolean isCoprime(int m, int n) {
+ return gcd(m, n) == 1;
+ }
+
+ public static boolean isPerfectTotient(int n) {
+ int i = n;
+ int s = 0;
+ while (i >= 1) {
+ ArrayList<Integer> coprimes = new ArrayList<Integer>();
+ for (int j = 1; j < i; j++) {
+ if (isCoprime(j, i)) {
+ coprimes.add(j);
+ }
+ }
+ i = coprimes.size();
+ s = s + i;
+ }
+
+ return n == s;
+ }
+
+ public static Integer[] firstPerfectTotient(int n) {
+ ArrayList<Integer> fpt = new ArrayList<Integer>();
+
+ int i = 1;
+ while (fpt.size() < n) {
+ if (isPerfectTotient(i)) {
+ fpt.add(i);
+ }
+ i++;
+ }
+
+ return fpt.toArray(new Integer[fpt.size()]);
+ }
+}
diff --git a/challenge-175/mohammad-anwar/perl/ch-2.pl b/challenge-175/mohammad-anwar/perl/ch-2.pl
new file mode 100644
index 0000000000..47d464ad34
--- /dev/null
+++ b/challenge-175/mohammad-anwar/perl/ch-2.pl
@@ -0,0 +1,68 @@
+#!/usr/bin/perl
+
+=head1
+
+Week 175:
+
+ https://theweeklychallenge.org/blog/perl-weekly-challenge-175
+
+Task #2: Perfect Totient Numbers
+
+ Write a script to generate first 20 Perfect Totient Numbers.
+
+=cut
+
+use v5.36;
+use Test2::V0;
+
+is [
+ 3, 9, 15, 27, 39, 81, 111, 183, 243,
+ 255, 327, 363, 471, 729, 2187, 2199,
+ 3063, 4359, 4375, 5571
+ ], first_perfect_totient(20);
+
+done_testing;
+
+#
+#
+# METHODS
+
+sub is_coprime($a, $b) {
+ if ($a > $b) {
+ ($a, $b) = ($b, $a);
+ }
+ while ($a) {
+ ($a, $b) = ($b % $a, $a);
+ }
+ return $b == 1;
+}
+
+#
+# Simply coded as shown in the example in the wiki page:
+# https://en.wikipedia.org/wiki/Perfect_totient_number
+
+sub is_perfect_totient($n) {
+ my $i = $n;
+ my $s = 0;
+ while ($i >= 1) {
+ my @coprimes = ();
+ foreach (1 .. $i-1) {
+ push @coprimes, $_ if is_coprime $_, $i;
+ }
+ $i = @coprimes;
+ $s = $s + $i;
+ }
+
+ return $n == $s;
+}
+
+sub first_perfect_totient($n) {
+ my @pt = ();
+ my $i = 1;
+ while (@pt < $n) {
+ push @pt, $i if is_perfect_totient $i;
+ $i++;
+ }
+
+ return \@pt;
+}
diff --git a/challenge-175/mohammad-anwar/python/ch-2.py b/challenge-175/mohammad-anwar/python/ch-2.py
new file mode 100644
index 0000000000..70ff32d7e2
--- /dev/null
+++ b/challenge-175/mohammad-anwar/python/ch-2.py
@@ -0,0 +1,63 @@
+#!/usr/bin/python3
+
+'''
+
+Week 175:
+
+ https://theweeklychallenge.org/blog/perl-weekly-challenge-175
+
+Task #2: Perfect Totient Numbers
+
+ Write a script to generate first 20 Perfect Totient Numbers.
+
+'''
+
+import math
+import unittest
+
+def isCoprime(a, b) -> bool:
+ return math.gcd(a, b) == 1
+
+#
+# Simply coded as shown in the example in the wiki page:
+# https://en.wikipedia.org/wiki/Perfect_totient_number
+
+def isPerfectTotient(n) -> bool:
+ i = n
+ s = 0
+ while i >= 1:
+ coprimes = []
+ for j in range(1, i):
+ if isCoprime(i, j):
+ coprimes.append(j)
+
+ i = len(coprimes)
+ s = s + i
+
+ return n == s
+
+def firstPerfectTotient(n):
+ pt = []
+ i = 1
+ while (len(pt) < n):
+ if isPerfectTotient(i):
+ pt.append(i)
+ i = i + 1
+
+ return pt
+
+#
+#
+# Unit test class
+
+class TestPerfectTotient(unittest.TestCase):
+ def test_firstPerfectTotient(self):
+ exp = [
+ 3, 9, 15, 27, 39, 81, 111, 183, 243,
+ 255, 327, 363, 471, 729, 2187, 2199,
+ 3063, 4359, 4375, 5571
+ ]
+ got = firstPerfectTotient(20)
+ self.assertEqual(exp, got)
+
+unittest.main()
diff --git a/challenge-175/mohammad-anwar/raku/ch-2.raku b/challenge-175/mohammad-anwar/raku/ch-2.raku
new file mode 100644
index 0000000000..58917a5d10
--- /dev/null
+++ b/challenge-175/mohammad-anwar/raku/ch-2.raku
@@ -0,0 +1,61 @@
+#!/usr/bin/env raku
+
+=begin pod
+
+Week 175:
+
+ https://theweeklychallenge.org/blog/perl-weekly-challenge-174
+
+Task #2: Perfect Totient Numbers
+
+ Write a script to generate first 20 Perfect Totient Numbers.
+
+=end pod
+
+use Test;
+
+is [
+ 3, 9, 15, 27, 39, 81, 111, 183, 243,
+ 255, 327, 363, 471, 729, 2187, 2199,
+ 3063, 4359, 4375, 5571
+ ], first-perfect-totient(20);
+
+done-testing;
+
+#
+#
+# METHODS
+
+sub is-coprime(Int $a, Int $b --> Bool) {
+ return ($a gcd $b) == 1;
+}
+
+#
+# Simply coded as shown in the example in the wiki page:
+# https://en.wikipedia.org/wiki/Perfect_totient_number
+
+sub is-perfect-totient(Int $n --> Bool) {
+ my Int $i = $n;
+ my Int $s = 0;
+ while $i >= 1 {
+ my Int @coprimes = ();
+ for 1..^$i {
+ @coprimes.push: $_ if is-coprime $_, $i;
+ }
+ $i = @coprimes.elems;
+ $s = $s + $i;
+ }
+
+ return $n == $s;
+}
+
+sub first-perfect-totient(Int $n --> Array[Int]) {
+ my Int @pt = ();
+ my Int $i = 1;
+ while @pt.elems < $n {
+ @pt.push: $i if is-perfect-totient $i;
+ $i++;
+ }
+
+ return @pt;
+}
diff --git a/challenge-175/mohammad-anwar/swift/ch-2.swift b/challenge-175/mohammad-anwar/swift/ch-2.swift
new file mode 100644
index 0000000000..32169f28b0
--- /dev/null
+++ b/challenge-175/mohammad-anwar/swift/ch-2.swift
@@ -0,0 +1,91 @@
+import Foundation
+
+/*
+
+Week 175:
+
+ https://theweeklychallenge.org/blog/perl-weekly-challenge-175
+
+Task #2: Perfect Totient Numbers
+
+ Write a script to generate first 20 Perfect Totient Numbers.
+
+ACTION:
+
+ $ swift ch-2.swift 20
+
+*/
+
+enum ParamError: Error {
+ case missingNumber
+ case invalidNumber
+}
+
+do {
+ let paramCount:Int = Int(CommandLine.argc)
+
+ if paramCount <= 1 {
+ throw ParamError.missingNumber
+ }
+
+ let num:Int = Int(CommandLine.arguments[1])!
+
+ if num >= 1 {
+ var i:Int = 0
+ var j:Int = 1
+ while i < num {
+ if isPerfectTotient(j) {
+ print(j)
+ i = i + 1
+ }
+ j = j + 1
+ }
+ }
+ else {
+ throw ParamError.invalidNumber
+ }
+}
+catch ParamError.missingNumber {
+ print("Missing number.")
+}
+catch ParamError.invalidNumber {
+ print("Invalid number.")
+}
+catch let error {
+ print(error)
+}
+
+//
+//
+// Functions
+
+func isCoprime(_ m: Int, _ n: Int) -> Bool {
+ var a: Int = 0
+ var b: Int = max(m, n)
+ var r: Int = min(m, n)
+
+ while r != 0 {
+ a = b
+ b = r
+ r = a % b
+ }
+
+ return b == 1
+}
+
+func isPerfectTotient(_ n:Int) -> Bool {
+ var i: Int = n
+ var s: Int = 0
+ while i >= 1 {
+ var coprimes:[Int] = []
+ for j in 1..<i {
+ if isCoprime(j, i) {
+ coprimes.append(j)
+ }
+ }
+ i = coprimes.count
+ s = s + i
+ }
+
+ return n == s
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index 9ff2d8d0bc..136c790079 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,16 +1,21 @@
{
+ "xAxis" : {
+ "type" : "category"
+ },
+ "title" : {
+ "text" : "The Weekly Challenge - 175"
+ },
"plotOptions" : {
"series" : {
+ "borderWidth" : 0,
"dataLabels" : {
"format" : "{point.y}",
"enabled" : 1
- },
- "borderWidth" : 0
+ }
}
},
"series" : [
{
- "name" : "The Weekly Challenge - 175",
"data" : [
{
"y" : 4,
@@ -18,14 +23,14 @@
"drilldown" : "Athanasius"
},
{
+ "name" : "Dave Cross",
"y" : 2,
- "drilldown" : "Dave Cross",
- "name" : "Dave Cross"
+ "drilldown" : "Dave Cross"
},
{
+ "y" : 1,
"name" : "Dave Jacoby",
- "drilldown" : "Dave Jacoby",
- "y" : 1
+ "drilldown" : "Dave Jacoby"
},
{
"y" : 2,
@@ -33,64 +38,64 @@
"drilldown" : "E. Choroba"
},
{
- "y" : 6,
"name" : "Flavio Poletti",
+ "y" : 6,
"drilldown" : "Flavio Poletti"
},
{
- "y" : 3,
"drilldown" : "James Smith",
- "name" : "James Smith"
+ "name" : "James Smith",
+ "y" : 3
},
{
- "y" : 2,
+ "drilldown" : "Jorg Sommrey",
"name" : "Jorg Sommrey",
- "drilldown" : "Jorg Sommrey"
+ "y" : 2
},
{
- "y" : 2,
"name" : "Kjetil Skotheim",
+ "y" : 2,
"drilldown" : "Kjetil Skotheim"
},
{
- "name" : "Laurent Rosenfeld",
"drilldown" : "Laurent Rosenfeld",
+ "name" : "Laurent Rosenfeld",
"y" : 5
},
{
"y" : 8,
- "drilldown" : "Luca Ferrari",
- "name" : "Luca Ferrari"
+ "name" : "Luca Ferrari",
+ "drilldown" : "Luca Ferrari"
},
{
- "name" : "Mark Anderson",
"drilldown" : "Mark Anderson",
+ "name" : "Mark Anderson",
"y" : 2
},
{
- "y" : 2,
"drilldown" : "Marton Polgar",
- "name" : "Marton Polgar"
+ "name" : "Marton Polgar",
+ "y" : 2
},
{
+ "y" : 4,
"name" : "Mohammad S Anwar",
- "drilldown" : "Mohammad S Anwar",
- "y" : 2
+ "drilldown" : "Mohammad S Anwar"
},
{
- "name" : "Peter Campbell Smith",
"drilldown" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith",
"y" : 3
},
{
- "y" : 2,
"drilldown" : "Robert DiCicco",
- "name" : "Robert DiCicco"
+ "name" : "Robert DiCicco",
+ "y" : 2
},
{
+ "drilldown" : "Roger Bell_West",
"y" : 5,
- "name" : "Roger Bell_West",
- "drilldown" : "Roger Bell_West"
+ "name" : "Roger Bell_West"
},
{
"y" : 1,
@@ -103,14 +108,14 @@
"drilldown" : "Stephen G Lynn"
},
{
- "y" : 4,
"name" : "Ulrich Rieke",
+ "y" : 4,
"drilldown" : "Ulrich Rieke"
},
{
"name" : "W. Luis Mochan",
- "drilldown" : "W. Luis Mochan",
- "y" : 3
+ "y" : 3,
+ "drilldown" : "W. Luis Mochan"
},
{
"drilldown" : "Walt Mankowski",
@@ -118,20 +123,14 @@
"y" : 2
}
],
+ "name" : "The Weekly Challenge - 175",
"colorByPoint" : 1
}
],
- "chart" : {
- "type" : "column"
- },
- "title" : {
- "text" : "The Weekly Challenge - 175"
- },
"drilldown" : {
"series" : [
{
"name" : "Athanasius",
- "id" : "Athanasius",
"data" : [
[
"Perl",
@@ -141,7 +140,8 @@
"Raku",
2
]
- ]
+ ],
+ "id" : "Athanasius"
},
{
"name" : "Dave Cross",
@@ -154,28 +154,27 @@
]
},
{
+ "name" : "Dave Jacoby",
+ "id" : "Dave Jacoby",
"data" : [
[
"Perl",
1
]
- ],
- "name" : "Dave Jacoby",
- "id" : "Dave Jacoby"
+ ]
},
{
- "id" : "E. Choroba",
"name" : "E. Choroba",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "id" : "E. Choroba"
},
{
"id" : "Flavio Poletti",
- "name" : "Flavio Poletti",
"data" : [
[
"Perl",
@@ -189,9 +188,12 @@
"Blog",
2
]
- ]
+ ],
+ "name" : "Flavio Poletti"
},
{
+ "name" : "James Smith",
+ "id" : "James Smith",
"data" : [
[
"Perl",
@@ -201,9 +203,7 @@
"Blog",
1
]
- ],
- "id" : "James Smith",
- "name" : "James Smith"
+ ]
},
{
"name" : "Jorg Sommrey",
@@ -216,17 +216,16 @@
]
},
{
- "name" : "Kjetil Skotheim",
"id" : "Kjetil Skotheim",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "name" : "Kjetil Skotheim"
},
{
- "name" : "Laurent Rosenfeld",
"id" : "Laurent Rosenfeld",
"data" : [
[
@@ -241,11 +240,11 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "Laurent Rosenfeld"
},
{
"id" : "Luca Ferrari",
- "name" : "Luca Ferrari",
"data" : [
[
"Raku",
@@ -255,41 +254,42 @@
"Blog",
6
]
- ]
+ ],
+ "name" : "Luca Ferrari"
},
{
"id" : "Mark Anderson",
- "name" : "Mark Anderson",
"data" : [
[
"Blog",
2
]
- ]
+ ],
+ "name" : "Mark Anderson"
},
{
"name" : "Marton Polgar",
- "id" : "Marton Polgar",
"data" : [
[
"Raku",
2
]
- ]
+ ],
+ "id" : "Marton Polgar"
},
{
- "name" : "Mohammad S Anwar",
"id" : "Mohammad S Anwar",
"data" : [
[
"Perl",
- 1
+ 2
],
[
"Raku",
- 1
+ 2
]
- ]
+ ],
+ "name" : "Mohammad S Anwar"
},
{
"name" : "Peter Campbell Smith",
@@ -306,8 +306,6 @@
]
},
{
- "name" : "Robert DiCicco",
- "id" : "Robert DiCicco",
"data" : [
[
"Perl",
@@ -317,9 +315,13 @@
"Raku",
1
]
- ]
+ ],
+ "id" : "Robert DiCicco",
+ "name" : "Robert DiCicco"
},
{
+ "name" : "Roger Bell_West",
+ "id" : "Roger Bell_West",
"data" : [
[
"Perl",
@@ -333,19 +335,17 @@
"Blog",
1
]
- ],
- "name" : "Roger Bell_West",
- "id" : "Roger Bell_West"
+ ]
},
{
+ "name" : "Simon Proctor",
+ "id" : "Simon Proctor",
"data" : [
[
"Raku",
1
]
- ],
- "id" : "Simon Proctor",
- "name" : "Simon Proctor"
+ ]
},
{
"data" : [
@@ -362,11 +362,10 @@
1
]
],
- "name" : "Stephen G Lynn",
- "id" : "Stephen G Lynn"
+ "id" : "Stephen G Lynn",
+ "name" : "Stephen G Lynn"
},
{
- "id" : "Ulrich Rieke",
"name" : "Ulrich Rieke",
"data" : [
[
@@ -377,10 +376,10 @@
"Raku",
2
]
- ]
+ ],
+ "id" : "Ulrich Rieke"
},
{
- "name" : "W. Luis Mochan",
"id" : "W. Luis Mochan",
"data" : [
[
@@ -391,37 +390,38 @@
"Blog",
1
]
- ]
+ ],
+ "name" : "W. Luis Mochan"
},
{
- "name" : "Walt Mankowski",
- "id" : "Walt Mankowski",
"data" : [
[
"Perl",
2
]
- ]
+ ],
+ "id" : "Walt Mankowski",
+ "name" : "Walt Mankowski"
}
]
},
+ "chart" : {
+ "type" : "column"
+ },
"yAxis" : {
"title" : {
"text" : "Total Solutions"
}
},
+ "legend" : {
+ "enabled" : 0
+ },
"tooltip" : {
- "followPointer" : 1,
"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/>"
},
- "xAxis" : {
- "type" : "category"
- },
"subtitle" : {
- "text" : "[Champions: 21] Last updated at 2022-07-29 16:34:15 GMT"
- },
- "legend" : {
- "enabled" : 0
+ "text" : "[Champions: 21] Last updated at 2022-07-29 17:57:40 GMT"
}
}
diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json
index ca1452e488..9d6c5c78d0 100644
--- a/stats/pwc-language-breakdown-summary.json
+++ b/stats/pwc-language-breakdown-summary.json
@@ -1,43 +1,6 @@
{
- "subtitle" : {
- "text" : "Last updated at 2022-07-29 16:34:15 GMT"
- },
- "legend" : {
- "enabled" : "false"
- },
- "tooltip" : {
- "pointFormat" : "<b>{point.y:.0f}</b>"
- },
- "yAxis" : {
- "title" : {
- "text" : null
- },
- "min" : 0
- },
- "xAxis" : {
- "type" : "category",
- "labels" : {
- "style" : {
- "fontSize" : "13px",
- "fontFamily" : "Verdana, sans-serif"
- }
- }
- },
"series" : [
{
- "name" : "Contributions",
- "dataLabels" : {
- "color" : "#FFFFFF",
- "style" : {
- "fontFamily" : "Verdana, sans-serif",
- "fontSize" : "13px"
- },
- "y" : 10,
- "rotation" : -90,
- "format" : "{point.y:.0f}",
- "enabled" : "true",
- "align" : "right"
- },
"data" : [
[
"Blog",
@@ -45,19 +8,56 @@
],
[
"Perl",
- 8530
+ 8531
],
[
"Raku",
- 5077
+ 5078
]
- ]
+ ],
+ "name" : "Contributions",
+ "dataLabels" : {
+ "style" : {
+ "fontFamily" : "Verdana, sans-serif",
+ "fontSize" : "13px"
+ },
+ "rotation" : -90,
+ "format" : "{point.y:.0f}",
+ "enabled" : "true",
+ "align" : "right",
+ "y" : 10,
+ "color" : "#FFFFFF"
+ }
}
],
- "chart" : {
- "type" : "column"
- },
"title" : {
"text" : "The Weekly Challenge Contributions [2019 - 2022]"
+ },
+ "xAxis" : {
+ "type" : "category",
+ "labels" : {
+ "style" : {
+ "fontSize" : "13px",
+ "fontFamily" : "Verdana, sans-serif"
+ }
+ }
+ },
+ "subtitle" : {
+ "text" : "Last updated at 2022-07-29 17:57:40 GMT"
+ },
+ "tooltip" : {
+ "pointFormat" : "<b>{point.y:.0f}</b>"
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : null
+ },
+ "min" : 0
+ },
+ "legend" : {
+ "enabled" : "false"
+ },
+ "chart" : {
+ "type" : "column"
}
}
diff --git a/stats/pwc-language-breakdown.json b/stats/pwc-language-breakdown.json
index f2ad409765..66a92cd589 100644
--- a/stats/pwc-language-breakdown.json
+++ b/stats/pwc-language-breakdown.json
@@ -1,32 +1,921 @@
{
- "xAxis" : {
- "type" : "category"
+ "chart" : {
+ "type" : "column"
},
"yAxis" : {
"title" : {
"text" : "Total Solutions"
}
},
+ "legend" : {
+ "enabled" : "false"
+ },
"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/>"
},
- "legend" : {
- "enabled" : "false"
- },
"subtitle" : {
- "text" : "Click the columns to drilldown the language breakdown. Last updated at 2022-07-29 16:34:15 GMT"
+ "text" : "Click the columns to drilldown the language breakdown. Last updated at 2022-07-29 17:57:40 GMT"
+ },
+ "xAxis" : {
+ "type" : "category"
},
"plotOptions" : {
"series" : {
"borderWidth" : 0,
"dataLabels" : {
- "enabled" : 1,
- "format" : "{point.y}"
+ "format" : "{point.y}",
+ "enabled" : 1
}
}
},
+ "title" : {
+ "text" : "The Weekly Challenge Language"
+ },
+ "series" : [
+ {
+ "colorByPoint" : "true",
+ "name" : "The Weekly Challenge Languages",
+ "data" : [
+ {
+ "drilldown" : "001",
+ "name" : "#001",
+ "y" : 161
+ },
+ {
+ "y" : 125,
+ "name" : "#002",
+ "drilldown" : "002"
+ },
+ {
+ "name" : "#003",
+ "y" : 83,
+ "drilldown" : "003"
+ },
+ {
+ "name" : "#004",
+ "y" : 99,
+ "drilldown" : "004"
+ },
+ {
+ "drilldown" : "005",
+ "y" : 78,
+ "name" : "#005"
+ },
+ {
+ "name" : "#006",
+ "y" : 58,
+ "drilldown" : "006"
+ },
+ {
+ "drilldown" : "007",
+ "y" : 65,
+ "name" : "#007"
+ },
+ {
+ "drilldown" : "008",
+ "name" : "#008",
+ "y" : 78
+ },
+ {
+ "name" : "#009",
+ "y" : 76,
+ "drilldown" : "009"
+ },
+ {
+ "y" : 65,
+ "name" : "#010",
+ "drilldown" : "010"
+ },
+ {
+ "drilldown" : "011",
+ "y" : 85,
+ "name" : "#011"
+ },
+ {
+ "y" : 89,
+ "name" : "#012",
+ "drilldown" : "012"
+ },
+ {
+ "drilldown" : "013",
<