Skip to content

Commit dbecbfe

Browse files
committed
[APL] Move solutions into apl files
1 parent eebb719 commit dbecbfe

38 files changed

+125
-1790
lines changed

APL/2021/01.apl

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
input ¨⎕NGET'../.cache/2021/1' 1
2+
+/2</ input
3+
+/2</3+/ input

APL/2021/01.ipynb

-88
This file was deleted.

APL/2021/02.apl

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
input {a b' '()a (b)} ¨ ⎕NGET '../.cache/2021/2' 1
2+
×/{d h(d+((2)×'d'⊃⊃)-((2)×'u'⊃⊃)) (h+((2)×'f'⊃⊃))}/((0 0)), input
3+
×/1{a h d(a+((2)×'d'⊃⊃)-((2)×'u'⊃⊃)) (h+((2)×'f'⊃⊃)) (d+((a×2)×'f'⊃⊃))}/((0 0 0)), input

APL/2021/02.ipynb

-88
This file was deleted.

APL/2021/03.apl

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
input ⎕NGET '../.cache/2021/3' 1
2+
×/{+2×}/(,~){()2×+/¨}¨ input
3+
×/{2¨}¨{x⊃⊃{im{(x+1),~}{()2×+/¨}io({m=i}¨)/(1+0=o)o }/(input),input}¨0 1

APL/2021/03.ipynb

-88
This file was deleted.

APL/2021/04.apl

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
input ⎕NGET '../.cache/2021/4' 1
2+
nums ¨','()input
3+
boards {{¨' '()}¨¨({0}¨)}2input
4+
{i bw{({/(/¯1=)¨,}¨)/}b0<w:((i-1)nums)×+/(w)~¯1(1+i)({=(inums):¯1}¨¨¨b)}1 boards
5+
{i bw{({/(/¯1=)¨,}¨)/}b(0<w)1=b:((i-1)nums)×+/(w)~¯1(1+i)({=(inums):¯1}¨¨¨b~w)}1 boards

APL/2021/04.ipynb

-90
This file was deleted.

APL/2021/05.apl

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
input ((¨','())¨('->')~' '())¨⎕NGET '../.cache/2021/5' 1
2+
iter {a bab:b(a),(a+×b-a) b}
3+
+/2¨/{ },/iter¨{(=)/} input
4+
+/2¨/{ },/iter¨ input

0 commit comments

Comments
 (0)