Skip to content

Commit

Permalink
Day 4 solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 4, 2018
1 parent 2492f31 commit 230c993
Show file tree
Hide file tree
Showing 2 changed files with 1,080 additions and 0 deletions.
7 changes: 7 additions & 0 deletions p4.dyalog
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
⎕IO0
p{[]}⎕NGET'p4.txt'1
a4000 600
s {en'\d+'⎕S'&' 6=n:ge s:se a[g;s+e-s]+1 s}¨p
f{=/,} coordinates of maximum value
{×f a}f+/a part 1
×/f a part 2
Loading

0 comments on commit 230c993

Please sign in to comment.