Skip to content

Instantly share code, notes, and snippets.

⍝ Day 1
in1←,⎕csv'd1.txt'⍬4
⎕←⌈/+⌿⍤1⊢↑(≢¨in1)⊆in1
⎕←+/3↑(⊂∘⍒⌷⊢)+⌿⍤1⊢↑(≢¨in1)⊆in1
⍝ Day 2
in2←,/⎕csv⍠'Separator' ' '⊢'d2.txt'⍬4
C S←↓⍉9 2⍴'AX' 4 'BX' 1 'CX' 7 'AY' 8 'BY' 5 'CY' 2 'AZ' 3 'BZ' 9 'CZ' 6
⎕←+/S[C⍳in2]
C S←↓⍉9 2⍴'AX' 3 'AY' 4 'AZ' 8 'BX' 1 'BY' 5 'BZ' 9 'CX' 2 'CY' 6 'CZ' 7
### Keybase proof
I hereby claim:
* I am fflath on github.
* I am f73x (https://keybase.io/f73x) on keybase.
* I have a public key ASASu4iZRzf7xvzARc-6IISfA193SgRNsq7OTHloVW00kQo
To claim this, I am signing this object: