diff options
author | sterni <sternenseemann@systemli.org> | 2022-12-03T15·47+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-12-03T15·50+0000 |
commit | 0251f56575fe83bcfb8b31165caf56d8ab001306 (patch) | |
tree | f41a3636a31c779dcea3d578fa429e3bf4e5f784 /users/sterni/exercises/aoc/2022 | |
parent | abaa90c3ab9d738901804916441ac07f29a8a22f (diff) |
feat(sterni/aoc/2022): day03 solution r/5381
Change-Id: I0f23d4d6405779fe7e804eb8b9f407dc4de88760 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7502 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/exercises/aoc/2022')
-rw-r--r-- | users/sterni/exercises/aoc/2022/03/3.bqn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/users/sterni/exercises/aoc/2022/03/3.bqn b/users/sterni/exercises/aoc/2022/03/3.bqn new file mode 100644 index 000000000000..642fccd45034 --- /dev/null +++ b/users/sterni/exercises/aoc/2022/03/3.bqn @@ -0,0 +1,8 @@ +i ← •FLines •path∾"/input" +c ← ∾(↕26)⊸+¨"aA" +P ← {1+⊑c⊐⊑𝕩} +S ← (∊/⊣) +G ← ((⊣/(↕÷˜⟜≠))⊔⊢) + +•Out "day03.1: "∾•Fmt +´(P S˝)¨2‿∘⊸⥊¨i +•Out "day03.2: "∾•Fmt +´3(P S´)¨∘G i |