From ea34e705aca5c566db3e2d44c462b0c912a4c2fb Mon Sep 17 00:00:00 2001 From: Mohammad Sajid Anwar Date: Mon, 8 Sep 2025 20:05:34 +0100 Subject: - Added solutions by Peter Meszaros. --- challenge-338/conor-hoekstra/bqn/ch-1.bqn | 13 +++++++++++++ challenge-338/conor-hoekstra/bqn/ch-2.bqn | 13 +++++++++++++ challenge-338/conor-hoekstra/ch-1.bqn | 13 ------------- challenge-338/conor-hoekstra/ch-2.bqn | 13 ------------- stats/pwc-current.json | 17 ++++++++++++++++- stats/pwc-language-breakdown-2019.json | 2 +- stats/pwc-language-breakdown-2020.json | 2 +- stats/pwc-language-breakdown-2021.json | 2 +- stats/pwc-language-breakdown-2022.json | 2 +- stats/pwc-language-breakdown-2023.json | 2 +- stats/pwc-language-breakdown-2024.json | 2 +- stats/pwc-language-breakdown-2025.json | 6 +++--- stats/pwc-language-breakdown-summary.json | 4 ++-- stats/pwc-leaders.json | 6 +++--- stats/pwc-summary-1-30.json | 2 +- stats/pwc-summary-121-150.json | 2 +- stats/pwc-summary-151-180.json | 2 +- stats/pwc-summary-181-210.json | 2 +- stats/pwc-summary-211-240.json | 4 ++-- stats/pwc-summary-241-270.json | 2 +- stats/pwc-summary-271-300.json | 2 +- stats/pwc-summary-301-330.json | 2 +- stats/pwc-summary-31-60.json | 4 ++-- stats/pwc-summary-61-90.json | 2 +- stats/pwc-summary-91-120.json | 2 +- stats/pwc-summary.json | 4 ++-- stats/pwc-yearly-language-summary.json | 6 +++--- 27 files changed, 74 insertions(+), 59 deletions(-) create mode 100644 challenge-338/conor-hoekstra/bqn/ch-1.bqn create mode 100644 challenge-338/conor-hoekstra/bqn/ch-2.bqn delete mode 100644 challenge-338/conor-hoekstra/ch-1.bqn delete mode 100644 challenge-338/conor-hoekstra/ch-2.bqn diff --git a/challenge-338/conor-hoekstra/bqn/ch-1.bqn b/challenge-338/conor-hoekstra/bqn/ch-1.bqn new file mode 100644 index 0000000000..33ae645c08 --- /dev/null +++ b/challenge-338/conor-hoekstra/bqn/ch-1.bqn @@ -0,0 +1,13 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/338-1.bqn + +u ⇐ •Import "/home/cph/bqn-test/test.bqn" + +HighestRow ← ⌈´+´˘ + +# Tests +u.UnitTest (HighestRow >⟨⟨4,4,4,4⟩,⟨10,0,0,0⟩,⟨2,2,2,9⟩⟩) ≡ 16 +u.UnitTest (HighestRow >⟨⟨1,5⟩,⟨7,3⟩,⟨3,5⟩⟩) ≡ 10 +u.UnitTest (HighestRow >⟨⟨1,2,3⟩,⟨3,2,1⟩⟩) ≡ 6 +u.UnitTest (HighestRow >⟨⟨2,8,7⟩,⟨7,1,3⟩,⟨1,9,5⟩⟩) ≡ 17 +u.UnitTest (HighestRow >⟨⟨10,20,30⟩,⟨5,5,5⟩,⟨0,100,0⟩,⟨25,25,25⟩⟩) ≡ 100 diff --git a/challenge-338/conor-hoekstra/bqn/ch-2.bqn b/challenge-338/conor-hoekstra/bqn/ch-2.bqn new file mode 100644 index 0000000000..6cb4bff818 --- /dev/null +++ b/challenge-338/conor-hoekstra/bqn/ch-2.bqn @@ -0,0 +1,13 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/338-2.bqn + +u ⇐ •Import "/home/cph/bqn-test/test.bqn" + +MaxDistance ← ⌈´·⥊·|-⌜ + +# Tests +u.UnitTest ( ⟨4,5,7⟩ MaxDistance ⟨9,1,3,4⟩) ≡ 6 +u.UnitTest ( ⟨2,3,5,4⟩ MaxDistance ⟨3,2,5,5,8,7⟩) ≡ 6 +u.UnitTest (⟨2,1,11,3⟩ MaxDistance ⟨2,5,10,2⟩) ≡ 9 +u.UnitTest ( ⟨1,2,3⟩ MaxDistance ⟨3,2,1⟩) ≡ 2 +u.UnitTest ( ⟨1,0,2,3⟩ MaxDistance ⟨5,0⟩) ≡ 5 diff --git a/challenge-338/conor-hoekstra/ch-1.bqn b/challenge-338/conor-hoekstra/ch-1.bqn deleted file mode 100644 index 33ae645c08..0000000000 --- a/challenge-338/conor-hoekstra/ch-1.bqn +++ /dev/null @@ -1,13 +0,0 @@ -# For up to date code: -# https://github.com/codereport/bqn-code/blob/main/pwc/338-1.bqn - -u ⇐ •Import "/home/cph/bqn-test/test.bqn" - -HighestRow ← ⌈´+´˘ - -# Tests -u.UnitTest (HighestRow >⟨⟨4,4,4,4⟩,⟨10,0,0,0⟩,⟨2,2,2,9⟩⟩) ≡ 16 -u.UnitTest (HighestRow >⟨⟨1,5⟩,⟨7,3⟩,⟨3,5⟩⟩) ≡ 10 -u.UnitTest (HighestRow >⟨⟨1,2,3⟩,⟨3,2,1⟩⟩) ≡ 6 -u.UnitTest (HighestRow >⟨⟨2,8,7⟩,⟨7,1,3⟩,⟨1,9,5⟩⟩) ≡ 17 -u.UnitTest (HighestRow >⟨⟨10,20,30⟩,⟨5,5,5⟩,⟨0,100,0⟩,⟨25,25,25⟩⟩) ≡ 100 diff --git a/challenge-338/conor-hoekstra/ch-2.bqn b/challenge-338/conor-hoekstra/ch-2.bqn deleted file mode 100644 index 6cb4bff818..0000000000 --- a/challenge-338/conor-hoekstra/ch-2.bqn +++ /dev/null @@ -1,13 +0,0 @@ -# For up to date code: -# https://github.com/codereport/bqn-code/blob/main/pwc/338-2.bqn - -u ⇐ •Import "/home/cph/bqn-test/test.bqn" - -MaxDistance ← ⌈´·⥊·|-⌜ - -# Tests -u.UnitTest ( ⟨4,5,7⟩ MaxDistance ⟨9,1,3,4⟩) ≡ 6 -u.UnitTest ( ⟨2,3,5,4⟩ MaxDistance ⟨3,2,5,5,8,7⟩) ≡ 6 -u.UnitTest (⟨2,1,11,3⟩ MaxDistance ⟨2,5,10,2⟩) ≡ 9 -u.UnitTest ( ⟨1,2,3⟩ MaxDistance ⟨3,2,1⟩) ≡ 2 -u.UnitTest ( ⟨1,0,2,3⟩ MaxDistance ⟨5,0⟩) ≡ 5 diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 4dcbb18d5b..c1e4d93dd2 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -92,6 +92,16 @@ "id" : "Peter Campbell Smith", "name" : "Peter Campbell Smith" }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Peter Meszaros", + "name" : "Peter Meszaros" + }, { "data" : [ [ @@ -178,6 +188,11 @@ "name" : "Peter Campbell Smith", "y" : 3 }, + { + "drilldown" : "Peter Meszaros", + "name" : "Peter Meszaros", + "y" : 2 + }, { "drilldown" : "Ulrich Rieke", "name" : "Ulrich Rieke", @@ -193,7 +208,7 @@ } ], "subtitle" : { - "text" : "[Champions: 10] Last updated at 2025-09-08 17:02:16 GMT" + "text" : "[Champions: 11] Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge - 338" diff --git a/stats/pwc-language-breakdown-2019.json b/stats/pwc-language-breakdown-2019.json index e3f14a0f00..4c5929c44f 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-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2020.json b/stats/pwc-language-breakdown-2020.json index a9da3c114b..d874e90954 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-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2021.json b/stats/pwc-language-breakdown-2021.json index 086015885f..a9ed2ee615 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-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2022.json b/stats/pwc-language-breakdown-2022.json index 2c9af252a9..37433e3603 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-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2023.json b/stats/pwc-language-breakdown-2023.json index 848a84a089..9bc76d02a2 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-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2024.json b/stats/pwc-language-breakdown-2024.json index a2322dd3e6..19f80ff806 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-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2025.json b/stats/pwc-language-breakdown-2025.json index d53366bc7c..c6191bf206 100644 --- a/stats/pwc-language-breakdown-2025.json +++ b/stats/pwc-language-breakdown-2025.json @@ -8,7 +8,7 @@ "data" : [ [ "Perl", - 16 + 18 ], [ "Raku", @@ -673,7 +673,7 @@ { "drilldown" : "338", "name" : "338", - "y" : 25 + "y" : 27 }, { "drilldown" : "337", @@ -855,7 +855,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 327cb5a0e9..f0a14d2fa9 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -10,7 +10,7 @@ "data" : [ [ "Perl", - 17400 + 17402 ], [ "Raku", @@ -37,7 +37,7 @@ } ], "subtitle" : { - "text" : "Last updated at 2025-09-08 17:02:16 GMT" + "text" : "Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Contributions [2019 - 2025]" diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 7956f39035..3ca49da2f4 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -646,7 +646,7 @@ "data" : [ [ "Perl", - 276 + 278 ] ], "id" : "Peter Meszaros", @@ -1002,7 +1002,7 @@ { "drilldown" : "Peter Meszaros", "name" : "42: Peter Meszaros", - "y" : 552 + "y" : 556 }, { "drilldown" : "Stephen G. Lynn", @@ -1049,7 +1049,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2025-09-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "Team Leaders (TOP 50)" diff --git a/stats/pwc-summary-1-30.json b/stats/pwc-summary-1-30.json index 987c62537b..dbf1340e3b 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-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 757e0ee8c1..58da636874 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-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 72249656df..b4b72f516e 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-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 29e0386583..295148cb2d 100644 --- a/stats/pwc-summary-181-210.json +++ b/stats/pwc-summary-181-210.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 9feb6a3933..64d8cdee23 100644 --- a/stats/pwc-summary-211-240.json +++ b/stats/pwc-summary-211-240.json @@ -28,7 +28,7 @@ 0, 402, 1, - 276, + 278, 10, 11, 7, @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 45ccae141e..740e7174b8 100644 --- a/stats/pwc-summary-241-270.json +++ b/stats/pwc-summary-241-270.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 4c4af8d738..e4737680f4 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-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 fae771b9b8..e97d253f13 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-08 17:02:16 GMT" + "text" : "[Champions: 28] Last updated at 2025-09-08 19:05:28 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 b8038ab1f1..9f677e7b3e 100644 --- a/stats/pwc-summary-31-60.json +++ b/stats/pwc-summary-31-60.json @@ -69,8 +69,8 @@ 9, 0, 0, - 2, 17, + 2, 0, 194, 0, @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-09-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 e402b8de0e..069852f213 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-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 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 4739b34bb6..34c59928b8 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-08 17:02:16 GMT" + "text" : "[Champions: 30] Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary.json b/stats/pwc-summary.json index 3662cb32ee..9b91cf34ce 100644 --- a/stats/pwc-summary.json +++ b/stats/pwc-summary.json @@ -238,7 +238,7 @@ 0, 204, 1, - 138, + 139, 5, 10, 4, @@ -1009,7 +1009,7 @@ } ], "subtitle" : { - "text" : "[Champions: 328] Last updated at 2025-09-08 17:02:16 GMT" + "text" : "[Champions: 328] Last updated at 2025-09-08 19:05:28 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 655a65ce19..f67717f291 100644 --- a/stats/pwc-yearly-language-summary.json +++ b/stats/pwc-yearly-language-summary.json @@ -8,7 +8,7 @@ "data" : [ [ "Perl", - 1629 + 1631 ], [ "Raku", @@ -151,7 +151,7 @@ { "drilldown" : "2025", "name" : "2025", - "y" : 3097 + "y" : 3099 }, { "drilldown" : "2024", @@ -188,7 +188,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 17:02:16 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-09-08 19:05:28 GMT" }, "title" : { "text" : "The Weekly Challenge Language" -- cgit