diff options
| author | Mohammad Sajid Anwar <mohammad.anwar@yahoo.com> | 2025-09-23 10:32:47 +0100 |
|---|---|---|
| committer | Mohammad Sajid Anwar <mohammad.anwar@yahoo.com> | 2025-09-23 10:32:47 +0100 |
| commit | d9123fe89f8545fe33ff443a85a662c1fb6fb6a8 (patch) | |
| tree | f5e7053ddcf9117848178ee8d73bed5196419386 | |
| parent | 34939d1acd073f0c864a299c58680b930e250945 (diff) | |
| download | perlweeklychallenge-club-d9123fe89f8545fe33ff443a85a662c1fb6fb6a8.tar.gz perlweeklychallenge-club-d9123fe89f8545fe33ff443a85a662c1fb6fb6a8.tar.bz2 perlweeklychallenge-club-d9123fe89f8545fe33ff443a85a662c1fb6fb6a8.zip | |
- Added solutions by Matthew Neleigh.
- Added solutions by Roger Bell_West.
- Added solutions by Ulrich Rieke.
24 files changed, 93 insertions, 61 deletions
diff --git a/challenge-340/ulrich-rieke/rust/ch-1.rs b/challenge-340/ulrich-rieke/rust/ch-1.rs index a742f26885..7f09fb4883 100755 --- a/challenge-340/ulrich-rieke/rust/ch-1.rs +++ b/challenge-340/ulrich-rieke/rust/ch-1.rs @@ -8,14 +8,12 @@ fn main() { let mut word : &str = inline.trim( ) ; let re = Regex::new(r"(.)\1").unwrap( ) ; let mut result = re.is_match( word ).unwrap( ) ; - let empty : String = "".to_string( ) ; - let mut current : String ; + let mut value : String ; while result { let fields : Vec<&str> = re.split( word ).map( |x| x.unwrap( ) ).collect( ) ; - let value : String = fields.iter( ).fold( empty.clone( ) , |acc , w| - acc.to_owned( ) + w ) ; - current = value.clone( ) ; - word = current.as_str( ) ; + value = fields.iter( ).fold( "".to_string( ) , |acc , w| acc.to_owned( ) + + w ) ; + word = value.as_str( ) ; result = re.is_match( word ).unwrap( ) ; } println!("{}" , word ) ; diff --git a/stats/pwc-current.json b/stats/pwc-current.json index e2dfa1b980..421fcb3395 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -88,6 +88,16 @@ "data" : [ [ "Perl", + 2 + ] + ], + "id" : "Matthew Neleigh", + "name" : "Matthew Neleigh" + }, + { + "data" : [ + [ + "Perl", 1 ] ], @@ -121,6 +131,20 @@ { "data" : [ [ + "Perl", + 2 + ], + [ + "Raku", + 2 + ] + ], + "id" : "Roger Bell_West", + "name" : "Roger Bell_West" + }, + { + "data" : [ + [ "Raku", 2 ] @@ -239,6 +263,11 @@ "y" : 2 }, { + "drilldown" : "Matthew Neleigh", + "name" : "Matthew Neleigh", + "y" : 2 + }, + { "drilldown" : "Mohammad Sajid Anwar", "name" : "Mohammad Sajid Anwar", "y" : 1 @@ -254,6 +283,11 @@ "y" : 3 }, { + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West", + "y" : 4 + }, + { "drilldown" : "Simon Proctor", "name" : "Simon Proctor", "y" : 2 @@ -283,7 +317,7 @@ } ], "subtitle" : { - "text" : "[Champions: 16] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 18] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge - 340" diff --git a/stats/pwc-language-breakdown-2019.json b/stats/pwc-language-breakdown-2019.json index 420f9d73b1..ea5cd5ccb5 100644 --- a/stats/pwc-language-breakdown-2019.json +++ b/stats/pwc-language-breakdown-2019.json @@ -970,7 +970,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2020.json b/stats/pwc-language-breakdown-2020.json index 016a01c644..4940b53738 100644 --- a/stats/pwc-language-breakdown-2020.json +++ b/stats/pwc-language-breakdown-2020.json @@ -1223,7 +1223,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2021.json b/stats/pwc-language-breakdown-2021.json index 281784bbdb..da4713690c 100644 --- a/stats/pwc-language-breakdown-2021.json +++ b/stats/pwc-language-breakdown-2021.json @@ -1223,7 +1223,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2022.json b/stats/pwc-language-breakdown-2022.json index e2063f9a4c..9844ceec46 100644 --- a/stats/pwc-language-breakdown-2022.json +++ b/stats/pwc-language-breakdown-2022.json @@ -1223,7 +1223,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2023.json b/stats/pwc-language-breakdown-2023.json index 58fdc66817..756ed04870 100644 --- a/stats/pwc-language-breakdown-2023.json +++ b/stats/pwc-language-breakdown-2023.json @@ -1200,7 +1200,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2024.json b/stats/pwc-language-breakdown-2024.json index c94c52c6f1..225b324e9a 100644 --- a/stats/pwc-language-breakdown-2024.json +++ b/stats/pwc-language-breakdown-2024.json @@ -1246,7 +1246,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2025.json b/stats/pwc-language-breakdown-2025.json index 87f530f04d..514914b84c 100644 --- a/stats/pwc-language-breakdown-2025.json +++ b/stats/pwc-language-breakdown-2025.json @@ -8,11 +8,11 @@ "data" : [ [ "Perl", - 23 + 27 ], [ "Raku", - 10 + 12 ], [ "Blog", @@ -709,7 +709,7 @@ { "drilldown" : "340", "name" : "340", - "y" : 37 + "y" : 43 }, { "drilldown" : "339", @@ -901,7 +901,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 3fb1bb3a4c..55eadb2c14 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -10,11 +10,11 @@ "data" : [ [ "Perl", - 17507 + 17511 ], [ "Raku", - 9725 + 9727 ], [ "Blog", @@ -37,7 +37,7 @@ } ], "subtitle" : { - "text" : "Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Contributions [2019 - 2025]" diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 47122c031d..27515bb288 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -22,37 +22,37 @@ "data" : [ [ "Perl", - 620 + 639 ], [ "Raku", - 620 + 597 ], [ "Blog", - 310 + 318 ] ], - "id" : "Jaldhar H. Vyas", - "name" : "Jaldhar H. Vyas" + "id" : "Roger Bell_West", + "name" : "Roger Bell_West" }, { "data" : [ [ "Perl", - 637 + 620 ], [ "Raku", - 595 + 620 ], [ "Blog", - 318 + 310 ] ], - "id" : "Roger Bell_West", - "name" : "Roger Bell_West" + "id" : "Jaldhar H. Vyas", + "name" : "Jaldhar H. Vyas" }, { "data" : [ @@ -608,7 +608,7 @@ "data" : [ [ "Perl", - 299 + 301 ] ], "id" : "Matthew Neleigh", @@ -800,13 +800,13 @@ "y" : 3350 }, { - "drilldown" : "Jaldhar H. Vyas", - "name" : "2: Jaldhar H. Vyas", - "y" : 3100 + "drilldown" : "Roger Bell_West", + "name" : "2: Roger Bell_West", + "y" : 3108 }, { - "drilldown" : "Roger Bell_West", - "name" : "3: Roger Bell_West", + "drilldown" : "Jaldhar H. Vyas", + "name" : "3: Jaldhar H. Vyas", "y" : 3100 }, { @@ -987,7 +987,7 @@ { "drilldown" : "Matthew Neleigh", "name" : "39: Matthew Neleigh", - "y" : 598 + "y" : 602 }, { "drilldown" : "Abigail", @@ -1049,7 +1049,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "Team Leaders (TOP 50)" diff --git a/stats/pwc-summary-1-30.json b/stats/pwc-summary-1-30.json index 4dbe4145e5..672d7a3046 100644 --- a/stats/pwc-summary-1-30.json +++ b/stats/pwc-summary-1-30.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-121-150.json b/stats/pwc-summary-121-150.json index 74f4915a96..6b31854126 100644 --- a/stats/pwc-summary-121-150.json +++ b/stats/pwc-summary-121-150.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-151-180.json b/stats/pwc-summary-151-180.json index 1415caecfc..38e8729091 100644 --- a/stats/pwc-summary-151-180.json +++ b/stats/pwc-summary-151-180.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-181-210.json b/stats/pwc-summary-181-210.json index 77e48d7507..26103074c2 100644 --- a/stats/pwc-summary-181-210.json +++ b/stats/pwc-summary-181-210.json @@ -14,7 +14,7 @@ 0, 0, 4, - 299, + 301, 0, 4, 234, @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-211-240.json b/stats/pwc-summary-211-240.json index b5fc9d95c5..b6c6aa8b76 100644 --- a/stats/pwc-summary-211-240.json +++ b/stats/pwc-summary-211-240.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-241-270.json b/stats/pwc-summary-241-270.json index d8bc445cf9..53a7f0e3bd 100644 --- a/stats/pwc-summary-241-270.json +++ b/stats/pwc-summary-241-270.json @@ -34,7 +34,7 @@ 0, 0, 2, - 637, + 639, 113, 101, 56, @@ -69,7 +69,7 @@ 3, 344, 0, - 595, + 597, 113, 61, 0, @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-271-300.json b/stats/pwc-summary-271-300.json index d88b89fe39..1083d04ce6 100644 --- a/stats/pwc-summary-271-300.json +++ b/stats/pwc-summary-271-300.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-301-330.json b/stats/pwc-summary-301-330.json index a8c1592339..ff7326e887 100644 --- a/stats/pwc-summary-301-330.json +++ b/stats/pwc-summary-301-330.json @@ -109,7 +109,7 @@ } ], "subtitle" : { - "text" : "[Champions: 28] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 28] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-31-60.json b/stats/pwc-summary-31-60.json index 1d0f510772..99eb8ecbe5 100644 --- a/stats/pwc-summary-31-60.json +++ b/stats/pwc-summary-31-60.json @@ -69,8 +69,8 @@ 9, 0, 0, - 17, 2, + 17, 0, 194, 0, @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-61-90.json b/stats/pwc-summary-61-90.json index 2d49115a44..90d8fd1ccf 100644 --- a/stats/pwc-summary-61-90.json +++ b/stats/pwc-summary-61-90.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary-91-120.json b/stats/pwc-summary-91-120.json index 01452b6247..4a9447002f 100644 --- a/stats/pwc-summary-91-120.json +++ b/stats/pwc-summary-91-120.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary.json b/stats/pwc-summary.json index bec0eb8813..119af35c0c 100644 --- a/stats/pwc-summary.json +++ b/stats/pwc-summary.json @@ -194,7 +194,7 @@ 0, 0, 2, - 160, + 161, 0, 2, 117, @@ -274,7 +274,7 @@ 0, 0, 1, - 321, + 322, 57, 51, 28, @@ -607,7 +607,7 @@ 2, 176, 0, - 308, + 309, 57, 32, 0, @@ -1009,7 +1009,7 @@ } ], "subtitle" : { - "text" : "[Champions: 328] Last updated at 2025-09-22 23:21:00 GMT" + "text" : "[Champions: 328] Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-yearly-language-summary.json b/stats/pwc-yearly-language-summary.json index 55b3a08007..af036fdd31 100644 --- a/stats/pwc-yearly-language-summary.json +++ b/stats/pwc-yearly-language-summary.json @@ -8,11 +8,11 @@ "data" : [ [ "Perl", - 1736 + 1740 ], [ "Raku", - 855 + 857 ], [ "Blog", @@ -151,7 +151,7 @@ { "drilldown" : "2025", "name" : "2025", - "y" : 3280 + "y" : 3286 }, { "drilldown" : "2024", @@ -188,7 +188,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-22 23:21:00 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-23 09:32:40 GMT" }, "title" : { "text" : "The Weekly Challenge Language" |
