Skip to content

Commit

Permalink
Day 11 shorter and faster with n-wise reduction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 11, 2018
1 parent 674d67f commit 3bed3ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions p11nwise.dyalog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
⎕IO1
p⊃⊃⎕NGET'p11.txt'1
g{r y10 0+ ¯5+10|100÷r×p+y×r}¨300 300 grid
{=/,}3+/3+g part 1
1{()}1{0>m/,t+/+g: (+1),m,(m=t),} part 2

0 comments on commit 3bed3ac

Please sign in to comment.