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:
sterni 2022-12-06 07:15:31 +01:00 committed by clbot
parent 3f2172556a
commit efbac0813c
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1,4 @@
i •FLines "input"
FirstMarker {𝕩+/(´¬)˘𝕩i}
•Out "day06.1: "•Fmt FirstMarker 4
•Out "day06.2: "•Fmt FirstMarker 14

View file

@ -0,0 +1 @@
4 14{x+*&x=#'?'x':y}\:1:"input"