From 2bb7e9d5cd49f9335ccdb26a990bc9904447d064 Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Sat, 9 Dec 2023 20:28:58 +0100 Subject: [PATCH] day9 --- day9.bqn | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 day9.bqn diff --git a/day9.bqn b/day9.bqn new file mode 100644 index 0000000..3adb1d4 --- /dev/null +++ b/day9.bqn @@ -0,0 +1,5 @@ +Next ← {∧´𝕩=0 ? 0 ; (¯1⊸⊑ + 𝕊∘(¯1⊸↓)∘(«-⊢)) 𝕩} +Read ← •BQN {' ':'‿';'-':'¯';𝕩}¨ + +Part1 ⇐ +´ Next∘Read¨∘•FLines +Part2 ⇐ +´ Next∘⌽∘Read¨∘•FLines