From 1d8cf6726ec412fb9a92cc4f3e50368f6514afe4 Mon Sep 17 00:00:00 2001 From: Mohammad Sajid Anwar Date: Wed, 5 Nov 2025 02:40:16 +0000 Subject: - Added solutions by Conor Hoekstra. - Added solutions by Roger Bell_West. - Added solutions by W. Luis Mochan. --- challenge-346/conor-hoekstra/bqn/ch-1.bqn | 13 +++++++++++ challenge-346/conor-hoekstra/ch-1.bqn | 13 ----------- stats/pwc-current.json | 36 ++++++++++++++++++++++++++++++- 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 | 8 +++---- stats/pwc-language-breakdown-summary.json | 6 +++--- stats/pwc-leaders.json | 12 +++++------ 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 | 2 +- stats/pwc-summary-241-270.json | 4 ++-- stats/pwc-summary-271-300.json | 2 +- stats/pwc-summary-301-330.json | 6 +++--- stats/pwc-summary-31-60.json | 2 +- stats/pwc-summary-61-90.json | 2 +- stats/pwc-summary-91-120.json | 2 +- stats/pwc-summary.json | 8 +++---- stats/pwc-yearly-language-summary.json | 8 +++---- 25 files changed, 89 insertions(+), 55 deletions(-) create mode 100644 challenge-346/conor-hoekstra/bqn/ch-1.bqn delete mode 100644 challenge-346/conor-hoekstra/ch-1.bqn diff --git a/challenge-346/conor-hoekstra/bqn/ch-1.bqn b/challenge-346/conor-hoekstra/bqn/ch-1.bqn new file mode 100644 index 0000000000..89506e2f57 --- /dev/null +++ b/challenge-346/conor-hoekstra/bqn/ch-1.bqn @@ -0,0 +1,13 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/346-1.bqn + +u ⇐ •Import "/home/cph/bqn-test/test.bqn" + +LongestParentheses ← ⌈´·((((+´×∧´)0⊸≤)×(0=⊑∘⌽))·+`·-˝"()"=⌜⊢)¨·∾·(¯1↓↓)¨1↓↑ + +# Tests +u.UnitTest (LongestParentheses "(()())") ≡ 6 +u.UnitTest (LongestParentheses ")()())") ≡ 4 +u.UnitTest (LongestParentheses "((()))()(((()") ≡ 8 +u.UnitTest (LongestParentheses "))))((()(") ≡ 2 +u.UnitTest (LongestParentheses "()(()") ≡ 2 diff --git a/challenge-346/conor-hoekstra/ch-1.bqn b/challenge-346/conor-hoekstra/ch-1.bqn deleted file mode 100644 index 89506e2f57..0000000000 --- a/challenge-346/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/346-1.bqn - -u ⇐ •Import "/home/cph/bqn-test/test.bqn" - -LongestParentheses ← ⌈´·((((+´×∧´)0⊸≤)×(0=⊑∘⌽))·+`·-˝"()"=⌜⊢)¨·∾·(¯1↓↓)¨1↓↑ - -# Tests -u.UnitTest (LongestParentheses "(()())") ≡ 6 -u.UnitTest (LongestParentheses ")()())") ≡ 4 -u.UnitTest (LongestParentheses "((()))()(((()") ≡ 8 -u.UnitTest (LongestParentheses "))))((()(") ≡ 2 -u.UnitTest (LongestParentheses "()(()") ≡ 2 diff --git a/stats/pwc-current.json b/stats/pwc-current.json index 0605632bd5..75b2c221f5 100644 --- a/stats/pwc-current.json +++ b/stats/pwc-current.json @@ -82,6 +82,16 @@ "id" : "Mohammad Sajid Anwar", "name" : "Mohammad Sajid Anwar" }, + { + "data" : [ + [ + "Perl", + 2 + ] + ], + "id" : "Roger Bell_West", + "name" : "Roger Bell_West" + }, { "data" : [ [ @@ -95,6 +105,20 @@ ], "id" : "Thomas Kohler", "name" : "Thomas Kohler" + }, + { + "data" : [ + [ + "Perl", + 2 + ], + [ + "Blog", + 1 + ] + ], + "id" : "W. Luis Mochan", + "name" : "W. Luis Mochan" } ] }, @@ -149,17 +173,27 @@ "name" : "Mohammad Sajid Anwar", "y" : 2 }, + { + "drilldown" : "Roger Bell_West", + "name" : "Roger Bell_West", + "y" : 2 + }, { "drilldown" : "Thomas Kohler", "name" : "Thomas Kohler", "y" : 4 + }, + { + "drilldown" : "W. Luis Mochan", + "name" : "W. Luis Mochan", + "y" : 3 } ], "name" : "The Weekly Challenge - 346" } ], "subtitle" : { - "text" : "[Champions: 8] Last updated at 2025-11-04 09:30:06 GMT" + "text" : "[Champions: 10] Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge - 346" diff --git a/stats/pwc-language-breakdown-2019.json b/stats/pwc-language-breakdown-2019.json index 9988808dfd..a4869ebefc 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-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2020.json b/stats/pwc-language-breakdown-2020.json index 28bcfd6c64..37c1c930d9 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-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2021.json b/stats/pwc-language-breakdown-2021.json index c147be7af9..65b6d7a33a 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-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2022.json b/stats/pwc-language-breakdown-2022.json index 536b8c2b0f..77cbf9863d 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-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2023.json b/stats/pwc-language-breakdown-2023.json index 7ed3b7da5d..1642352dc5 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-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2024.json b/stats/pwc-language-breakdown-2024.json index cb38e34d51..d0efe17f43 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-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-2025.json b/stats/pwc-language-breakdown-2025.json index a3009b17e8..b5c97429dd 100644 --- a/stats/pwc-language-breakdown-2025.json +++ b/stats/pwc-language-breakdown-2025.json @@ -8,7 +8,7 @@ "data" : [ [ "Perl", - 13 + 17 ], [ "Raku", @@ -16,7 +16,7 @@ ], [ "Blog", - 3 + 4 ] ], "id" : "346", @@ -817,7 +817,7 @@ { "drilldown" : "346", "name" : "346", - "y" : 19 + "y" : 24 }, { "drilldown" : "345", @@ -1039,7 +1039,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" diff --git a/stats/pwc-language-breakdown-summary.json b/stats/pwc-language-breakdown-summary.json index 8bb632f603..658dbef4b6 100644 --- a/stats/pwc-language-breakdown-summary.json +++ b/stats/pwc-language-breakdown-summary.json @@ -10,7 +10,7 @@ "data" : [ [ "Perl", - 17808 + 17812 ], [ "Raku", @@ -18,7 +18,7 @@ ], [ "Blog", - 6379 + 6380 ] ], "dataLabels" : { @@ -37,7 +37,7 @@ } ], "subtitle" : { - "text" : "Last updated at 2025-11-04 09:30:06 GMT" + "text" : "Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Contributions [2019 - 2025]" diff --git a/stats/pwc-leaders.json b/stats/pwc-leaders.json index 57c027f96d..0e387419b8 100644 --- a/stats/pwc-leaders.json +++ b/stats/pwc-leaders.json @@ -40,7 +40,7 @@ "data" : [ [ "Perl", - 647 + 649 ], [ "Raku", @@ -158,7 +158,7 @@ "data" : [ [ "Perl", - 508 + 510 ], [ "Raku", @@ -166,7 +166,7 @@ ], [ "Blog", - 254 + 255 ] ], "id" : "W. Luis Mochan", @@ -807,7 +807,7 @@ { "drilldown" : "Roger Bell_West", "name" : "3: Roger Bell_West", - "y" : 3148 + "y" : 3152 }, { "drilldown" : "Laurent Rosenfeld", @@ -842,7 +842,7 @@ { "drilldown" : "W. Luis Mochan", "name" : "10: W. Luis Mochan", - "y" : 1528 + "y" : 1534 }, { "drilldown" : "Dave Jacoby", @@ -1049,7 +1049,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the score breakdown. Last updated at 2025-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the score breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "Team Leaders (TOP 50)" diff --git a/stats/pwc-summary-1-30.json b/stats/pwc-summary-1-30.json index 5339becaf7..8cf1156a89 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 6ed93c932b..d50df0de74 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 e7feb2b3f1..e0b6c6cc37 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 9ccdbcd8e1..d15e6cfc60 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 a10b5587c5..1ec9cf86bf 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 4d41545b83..f90c2bf26e 100644 --- a/stats/pwc-summary-241-270.json +++ b/stats/pwc-summary-241-270.json @@ -34,7 +34,7 @@ 0, 0, 2, - 647, + 649, 113, 107, 56, @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 b3da9a0768..9b3b4a5da6 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 d62eda483e..00f5d69369 100644 --- a/stats/pwc-summary-301-330.json +++ b/stats/pwc-summary-301-330.json @@ -28,7 +28,7 @@ 38, 0, 4, - 508, + 510, 87, 356, 1, @@ -94,7 +94,7 @@ 2, 0, 0, - 254, + 255, 18, 2, 0, @@ -109,7 +109,7 @@ } ], "subtitle" : { - "text" : "[Champions: 28] Last updated at 2025-11-04 09:30:06 GMT" + "text" : "[Champions: 28] Last updated at 2025-11-05 02:37:44 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 88ec6091ef..807e7210e3 100644 --- a/stats/pwc-summary-31-60.json +++ b/stats/pwc-summary-31-60.json @@ -115,7 +115,7 @@ } ], "subtitle" : { - "text" : "[Champions: 30] Last updated at 2025-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 5ce29b8a12..27bb69285f 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 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 9267609110..900878d38d 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-11-04 09:30:06 GMT" + "text" : "[Champions: 30] Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge [2019 - 2025]" diff --git a/stats/pwc-summary.json b/stats/pwc-summary.json index 80b488b1c0..bc15de85c9 100644 --- a/stats/pwc-summary.json +++ b/stats/pwc-summary.json @@ -274,7 +274,7 @@ 0, 0, 1, - 326, + 327, 57, 54, 28, @@ -328,7 +328,7 @@ 24, 0, 2, - 254, + 255, 44, 188, 1, @@ -994,7 +994,7 @@ 2, 0, 0, - 254, + 255, 18, 1, 0, @@ -1009,7 +1009,7 @@ } ], "subtitle" : { - "text" : "[Champions: 328] Last updated at 2025-11-04 09:30:06 GMT" + "text" : "[Champions: 328] Last updated at 2025-11-05 02:37:44 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 888cdcfc22..2609331f6a 100644 --- a/stats/pwc-yearly-language-summary.json +++ b/stats/pwc-yearly-language-summary.json @@ -8,7 +8,7 @@ "data" : [ [ "Perl", - 2031 + 2035 ], [ "Raku", @@ -16,7 +16,7 @@ ], [ "Blog", - 789 + 790 ] ], "id" : "2025", @@ -151,7 +151,7 @@ { "drilldown" : "2025", "name" : "2025", - "y" : 3813 + "y" : 3818 }, { "drilldown" : "2024", @@ -188,7 +188,7 @@ } ], "subtitle" : { - "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-04 09:30:06 GMT" + "text" : "Click the columns to drilldown the language breakdown. Last updated at 2025-11-05 02:37:44 GMT" }, "title" : { "text" : "The Weekly Challenge Language" -- cgit