Skip to content

Commit

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

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

0 comments on commit 2d7c7ca

Please sign in to comment.