Unable to load image

Advent of code day 4 :marseysad:

This is the advent of code day 4 thread for bragging about your solution and bullying people who haven't gotten it yet :marseyill:

35
Jump in the discussion.

No email address required.

r←⊢⎕FIO[49] 'day4raw.txt'
v←⍎¨¨¨('-'≠¨r⊂¨⍨','≠¨r)⊂¨¨r⊂¨⍨','≠¨r ⋄ f←{(1⌷⍵){1-⍨⍺+⍳1+⍵-⍺}2⌷⍵}
d1←{f↑1⌷⍵}¨v ⋄ d2←{f↑2⌷⍵}¨v ⋄ +/d1{+/1∊+/¨(⍺⍷⍵)(⍵⍷⍺)}¨d2 ⋄ ↑+/⍉⊃0≠⍴¨d1∩¨d2
Jump in the discussion.

No email address required.

:#marseyrick:

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.