Skip to content

Commit

Permalink
Day 24 part 2 slicker with ⍸⍣¯1
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 24, 2020
1 parent 37bf53c commit cf4eb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p24.dyalog
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ p←{⊃+/⍎¨'[ns]?.'⎕S'&'⊢⍵}¨⊃⎕NGET'p24.txt'1
+/2|{}p part 1
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
+/,f1002|¯1{()}1+p-/p part 2

0 comments on commit cf4eb88

Please sign in to comment.