diff --git a/aoc.bqn b/aoc.bqn new file mode 100644 index 0000000..d9d35aa --- /dev/null +++ b/aoc.bqn @@ -0,0 +1,7 @@ + +day1 ⇐ { + nums ← •BQN⎊0¨ •FLines "input/day1" + sums ← ∨ (+´ {𝕩↑𝕨↓nums}´)¨ (»⋈¨ ⊢-») / 0⊸≡¨ nums + + a ⇐ ⊑sums ⋄ b ⇐ +´ 3↑sums +}