From ed26524d600a747294a7ee49118646c5a5d27341 Mon Sep 17 00:00:00 2001 From: Panadestein Date: Fri, 13 Dec 2024 12:00:26 +0100 Subject: [PATCH] feat: add day XIII. --- src/aoc24.org | 36 ++++++++++++++++++++++++++---------- src/bqn/aoc24.bqn | 25 +++++++++++++++++-------- 2 files changed, 43 insertions(+), 18 deletions(-) diff --git a/src/aoc24.org b/src/aoc24.org index 2bb747f..07da698 100644 --- a/src/aoc24.org +++ b/src/aoc24.org @@ -241,26 +241,42 @@ powers of the adjacency matrix. This is method is unfortunately slower than simp ** XII -#+begin_src bqn :tangle ./bqn/aoc24.bqn :exports both +#+begin_src bqn :tangle ./bqn/aoc24.bqn :exports both XII ← { n‿inp ← ≠⊸⋈>•FLines Input𝕩 - cf‿cn ← ⟨»˘, », «˘, «⟩‿⟨0‿¯1, ¯1‿0, 0‿1, 1‿0⟩ - nb‿pr ← (∾¨´⋈·+´¬) inp<⊸=nud ← cf{𝕎𝕩}¨ diff --git a/src/bqn/aoc24.bqn b/src/bqn/aoc24.bqn index d4409fa..6c32e8f 100644 --- a/src/bqn/aoc24.bqn +++ b/src/bqn/aoc24.bqn @@ -127,16 +127,25 @@ XI _is 11 XII ← { n‿inp ← ≠⊸⋈>•FLines Input𝕩 - cf‿cn ← ⟨»˘, », «˘, «⟩‿⟨0‿¯1, ¯1‿0, 0‿1, 1‿0⟩ - nb‿pr ← (∾¨´⋈·+´¬) inp<⊸=nud ← cf{𝕎𝕩}¨