Skip to content

Commit

Permalink
Day 23 part 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 28, 2018
1 parent 4ce5953 commit ef9ac92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions p23.dyalog
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
p¨¨'-?\d+'⎕S'&'¨⎕NGET'p23.txt'1
r/p p0 ¯1p
+/{(r)+/|p-1p}r part 1

h{+/r+/0-|p-1}¨
f{(2*2/,|p)( g)3/0}
g{0=w/⍺⍺t h :f/t =0:w =1:0 ,(¯1+,3/3).+w (÷2),((÷2)ׯ1*,3/2).+w}
/+/¨fp part 2

0 comments on commit ef9ac92

Please sign in to comment.