aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-321/matthias-muth/README.md83
-rwxr-xr-xchallenge-321/matthias-muth/perl/ch-2.pl14
-rw-r--r--challenge-322/arne-sommer/blog.txt1
-rwxr-xr-xchallenge-322/arne-sommer/raku/ch-1.raku28
-rwxr-xr-xchallenge-322/arne-sommer/raku/ch-2.raku23
-rwxr-xr-xchallenge-322/arne-sommer/raku/rank-array23
-rwxr-xr-xchallenge-322/arne-sommer/raku/string-format33
-rwxr-xr-xchallenge-322/arne-sommer/raku/string-format-reverse28
-rw-r--r--challenge-322/ash/raku/ch-1.raku14
-rw-r--r--challenge-322/ash/raku/ch-2.raku12
-rw-r--r--challenge-322/conor-hoekstra/ch-1.bqn14
-rw-r--r--challenge-322/conor-hoekstra/ch-2.bqn15
-rwxr-xr-xchallenge-322/e-choroba/perl/ch-1.pl22
-rwxr-xr-xchallenge-322/e-choroba/perl/ch-2.pl20
-rwxr-xr-xchallenge-322/eric-cheung/python/ch-1.py28
-rwxr-xr-xchallenge-322/eric-cheung/python/ch-2.py12
-rwxr-xr-xchallenge-322/feng-chang/raku/ch-1.raku5
-rwxr-xr-xchallenge-322/feng-chang/raku/ch-2.raku6
-rwxr-xr-xchallenge-322/feng-chang/raku/ch-2a.raku5
-rwxr-xr-xchallenge-322/feng-chang/raku/test.raku28
-rw-r--r--challenge-322/luca-ferrari/blog-1.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-10.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-2.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-3.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-4.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-5.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-6.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-7.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-8.txt1
-rw-r--r--challenge-322/luca-ferrari/blog-9.txt1
-rw-r--r--challenge-322/luca-ferrari/pljava/pom.xml6
-rw-r--r--challenge-322/luca-ferrari/pljava/src/main/java/Task1.java77
-rw-r--r--challenge-322/luca-ferrari/pljava/src/main/java/Task2.java81
-rw-r--r--challenge-322/luca-ferrari/plperl/ch-1.plperl27
-rw-r--r--challenge-322/luca-ferrari/plperl/ch-2.plperl33
-rw-r--r--challenge-322/luca-ferrari/plpgsql/ch-1.sql30
-rw-r--r--challenge-322/luca-ferrari/plpgsql/ch-2.sql34
-rw-r--r--challenge-322/luca-ferrari/python/ch-1.py39
-rw-r--r--challenge-322/luca-ferrari/python/ch-2.py34
-rw-r--r--challenge-322/luca-ferrari/raku/ch-1.raku12
-rw-r--r--challenge-322/luca-ferrari/raku/ch-2.raku17
-rw-r--r--challenge-322/mark-anderson/raku/ch-1.raku36
-rw-r--r--challenge-322/mark-anderson/raku/ch-2.raku14
-rwxr-xr-xchallenge-322/perlboy1967/perl/ch-1.pl46
-rwxr-xr-xchallenge-322/perlboy1967/perl/ch-2.pl39
-rw-r--r--challenge-322/peter-campbell-smith/blog.txt1
-rwxr-xr-xchallenge-322/peter-campbell-smith/perl/ch-1.pl41
-rwxr-xr-xchallenge-322/peter-campbell-smith/perl/ch-2.pl46
-rw-r--r--challenge-322/robbie-hatley/blog.txt1
-rwxr-xr-xchallenge-322/robbie-hatley/perl/ch-1.pl84
-rwxr-xr-xchallenge-322/robbie-hatley/perl/ch-2.pl84
-rwxr-xr-xchallenge-322/roger-bell-west/crystal/ch-1.cr31
-rwxr-xr-xchallenge-322/roger-bell-west/crystal/ch-2.cr27
-rwxr-xr-xchallenge-322/roger-bell-west/javascript/ch-1.js39
-rwxr-xr-xchallenge-322/roger-bell-west/javascript/ch-2.js65
-rw-r--r--challenge-322/roger-bell-west/kotlin/ch-1.kt39
-rw-r--r--challenge-322/roger-bell-west/kotlin/ch-2.kt35
-rwxr-xr-xchallenge-322/roger-bell-west/lua/ch-1.lua61
-rwxr-xr-xchallenge-322/roger-bell-west/lua/ch-2.lua78
-rwxr-xr-xchallenge-322/roger-bell-west/perl/ch-1.pl28
-rwxr-xr-xchallenge-322/roger-bell-west/perl/ch-2.pl24
-rw-r--r--challenge-322/roger-bell-west/postscript/ch-1.ps107
-rw-r--r--challenge-322/roger-bell-west/postscript/ch-2.ps234
-rwxr-xr-xchallenge-322/roger-bell-west/python/ch-1.py29
-rwxr-xr-xchallenge-322/roger-bell-west/python/ch-2.py27
-rwxr-xr-xchallenge-322/roger-bell-west/raku/ch-1.p626
-rwxr-xr-xchallenge-322/roger-bell-west/raku/ch-2.p622
-rwxr-xr-xchallenge-322/roger-bell-west/ruby/ch-1.rb36
-rwxr-xr-xchallenge-322/roger-bell-west/ruby/ch-2.rb34
-rwxr-xr-xchallenge-322/roger-bell-west/rust/ch-1.rs34
-rwxr-xr-xchallenge-322/roger-bell-west/rust/ch-2.rs34
-rw-r--r--challenge-322/roger-bell-west/scala/ch-1.scala40
-rw-r--r--challenge-322/roger-bell-west/scala/ch-2.scala38
-rw-r--r--challenge-322/roger-bell-west/tests.json44
-rw-r--r--challenge-322/roger-bell-west/typst/ch-1.typ34
-rw-r--r--challenge-322/roger-bell-west/typst/ch-2.typ33
-rw-r--r--challenge-322/steven-wilson/python/ch-1.py28
-rw-r--r--challenge-322/steven-wilson/python/ch-2.py26
-rwxr-xr-xchallenge-322/ulrich-rieke/cpp/ch-1.cpp44
-rwxr-xr-xchallenge-322/ulrich-rieke/cpp/ch-2.cpp44
-rwxr-xr-xchallenge-322/ulrich-rieke/haskell/ch-1.hs20
-rwxr-xr-xchallenge-322/ulrich-rieke/haskell/ch-2.hs17
-rwxr-xr-xchallenge-322/ulrich-rieke/perl/ch-1.pl27
-rwxr-xr-xchallenge-322/ulrich-rieke/perl/ch-2.pl19
-rwxr-xr-xchallenge-322/ulrich-rieke/raku/ch-1.raku23
-rwxr-xr-xchallenge-322/ulrich-rieke/raku/ch-2.raku12
-rwxr-xr-xchallenge-322/ulrich-rieke/rust/ch-1.rs27
-rwxr-xr-xchallenge-322/ulrich-rieke/rust/ch-2.rs20
-rw-r--r--challenge-322/wlmb/blog.txt1
-rwxr-xr-xchallenge-322/wlmb/perl/ch-1.pl20
-rwxr-xr-xchallenge-322/wlmb/perl/ch-1b.pl19
-rwxr-xr-xchallenge-322/wlmb/perl/ch-2.pl15
-rw-r--r--challenge-322/ysth/perl/README.md1
-rw-r--r--challenge-322/ysth/perl/ch-1.pl6
-rw-r--r--challenge-322/ysth/perl/ch-2.pl7
-rw-r--r--challenge-322/ysth/python/ch-1.py18
-rw-r--r--challenge-322/ysth/python/ch-2.py19
-rw-r--r--challenge-322/zapwai/perl/ch-1.pl24
-rw-r--r--challenge-322/zapwai/perl/ch-2.pl40
-rw-r--r--members.json1
-rw-r--r--stats/pwc-challenge-321.json567
-rw-r--r--stats/pwc-current.json295
-rw-r--r--stats/pwc-language-breakdown-2019.json2
-rw-r--r--stats/pwc-language-breakdown-2020.json2
-rw-r--r--stats/pwc-language-breakdown-2021.json2
-rw-r--r--stats/pwc-language-breakdown-2022.json2
-rw-r--r--stats/pwc-language-breakdown-2023.json2
-rw-r--r--stats/pwc-language-breakdown-2024.json2
-rw-r--r--stats/pwc-language-breakdown-2025.json25
-rw-r--r--stats/pwc-language-breakdown-summary.json8
-rw-r--r--stats/pwc-leaders.json88
-rw-r--r--stats/pwc-summary-1-30.json8
-rw-r--r--stats/pwc-summary-121-150.json2
-rw-r--r--stats/pwc-summary-151-180.json8
-rw-r--r--stats/pwc-summary-181-210.json4
-rw-r--r--stats/pwc-summary-211-240.json6
-rw-r--r--stats/pwc-summary-241-270.json10
-rw-r--r--stats/pwc-summary-271-300.json2
-rw-r--r--stats/pwc-summary-301-330.json14
-rw-r--r--stats/pwc-summary-31-60.json4
-rw-r--r--stats/pwc-summary-61-90.json8
-rw-r--r--stats/pwc-summary-91-120.json2
-rw-r--r--stats/pwc-summary.json46
-rw-r--r--stats/pwc-yearly-language-summary.json10
124 files changed, 3580 insertions, 422 deletions
diff --git a/challenge-321/matthias-muth/README.md b/challenge-321/matthias-muth/README.md
index 45ded22b4b..a00f1d2dc0 100644
--- a/challenge-321/matthias-muth/README.md
+++ b/challenge-321/matthias-muth/README.md
@@ -54,20 +54,33 @@ I think that the easiest way to do this is to first sort the array numerically:
@nums = sort { $a <=> $b } @nums;
```
-Then, we have the minimum in the first entry, and the maximum in the last one.<br/>
-It's easy to get and remove those two from the array at the same time: we can use `shift` to get and remove the first one (the minimum) , and `pop` to do the same for the last one (the maximum).<br/>
+Then, we have the minimum in the first entry
+and the maximum in the last one.<br/>
+It's easy to get and remove those two from the array at the same time:
+we can use `shift` to get and remove the first one (the minimum),
+and `pop` to do the same for the last one (the maximum).<br/>
So the average is this:
```perl
( shift( @nums ) + pop( @nums ) ) / 2
```
-We will be doing this in a loop, as long as we still have at least two numbers (for the average) in the array.
+We will be doing this in a loop,
+as long as we still have at least two numbers
+(for calculating their average) in the array.
But how do we count the *distinct* averages?
-Someone [said](https://perldoc.perl.org/perlfaq4#How-can-I-remove-duplicate-elements-from-a-list-or-array?) 'When you think the words "unique" or "duplicated", think "hash keys"'.<br/>"Unique" and "distinct" are very often used interchangeably, even though they don't mean exactly the same.<br/>
-But in any case, a hash helps us to find the number of *distinct* values of averages:<br/>Whenever we have computed an average value, we create a hash entry with that value as a key, for example by assigning a value of `1` to it:
+Someone
+[said](https://perldoc.perl.org/perlfaq4#How-can-I-remove-duplicate-elements-from-a-list-or-array?)
+'When you think the words "unique" or "duplicated", think "hash keys"'.<br/>
+"Unique" and "distinct" are very often used interchangeably,
+even though they don't mean exactly the same thing.<br/>
+But no matter what,
+a hash helps us to find the number of *distinct* values of averages:<br/>
+Whenever we have computed an average value,
+we create a hash entry with that val