Skip to content

Commit

Permalink
Day 24 part 2 with incremental padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 24, 2020
1 parent 5eabfb4 commit 37bf53c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p24.dyalog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
e se sw w nw ne(0 1)(1 1)(1 0)(0 ¯1)(¯1 ¯1)(¯1 0)
p{+/¨'[ns]?.'⎕S'&'}¨⎕NGET'p24.txt'1
+/2|{}p part 1
pad{(++)(-+)}
A3 31 1 0 1 0 1 0 1 1 f{2=n+1=n{+/,A×}3 3}
+/,f100100 pad {a0/ a[]+1 2|a}1+p-/p part 2
A3 31 1 0 1 0 1 0 1 1
f{2=n+1=n{+/,A×}3 3}{000,0,}
+/,f100{a0/ a[]+1 2|a}1+p-/p part 2

0 comments on commit 37bf53c

Please sign in to comment.