feat(sterni/aoc/2022): day06 array solutions
Today's problem works very nicely thanks to window although the indexing sadly is off by a constant amount from what we immediately get. I have a feeling someone is going to demolish my 31 char k solution. Change-Id: Ia90786ce2fe321235286a85c466decf7feb669ed Reviewed-on: https://cl.tvl.fyi/c/depot/+/7534 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
3f2172556a
commit
efbac0813c
2 changed files with 5 additions and 0 deletions
4
users/sterni/exercises/aoc/2022/06/6.bqn
Normal file
4
users/sterni/exercises/aoc/2022/06/6.bqn
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
i ← ⊑•FLines "input"
|
||||||
|
FirstMarker ← {𝕩+⊑/(∧´∘¬⊒)˘𝕩↕i}
|
||||||
|
•Out "day06.1: "∾•Fmt FirstMarker 4
|
||||||
|
•Out "day06.2: "∾•Fmt FirstMarker 14
|
1
users/sterni/exercises/aoc/2022/06/6.k
Normal file
1
users/sterni/exercises/aoc/2022/06/6.k
Normal file
|
@ -0,0 +1 @@
|
||||||
|
4 14{x+*&x=#'?'x':y}\:1:"input"
|
Loading…
Reference in a new issue