From cd91d6dca52e0e31e194d60c03c3cf15de2c2d67 Mon Sep 17 00:00:00 2001 From: Asher Harvey-Smith Date: Sun, 8 Sep 2024 16:26:02 +0100 Subject: change apl file extensions --- challenge-285/asherbhs/apl/ch-1.apl | 4 ++++ challenge-285/asherbhs/apl/ch-1.apls | 4 ---- challenge-285/asherbhs/apl/ch-2.apl | 15 +++++++++++++++ challenge-285/asherbhs/apl/ch-2.apls | 15 --------------- 4 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 challenge-285/asherbhs/apl/ch-1.apl delete mode 100644 challenge-285/asherbhs/apl/ch-1.apls create mode 100644 challenge-285/asherbhs/apl/ch-2.apl delete mode 100644 challenge-285/asherbhs/apl/ch-2.apls diff --git a/challenge-285/asherbhs/apl/ch-1.apl b/challenge-285/asherbhs/apl/ch-1.apl new file mode 100644 index 0000000000..41e444b9d8 --- /dev/null +++ b/challenge-285/asherbhs/apl/ch-1.apl @@ -0,0 +1,4 @@ +NoConnection←{⊃⊃~⍨/↓⍉↑⍵} + +⎕←NoConnection 'BC' 'DB' 'CA' +⎕←NoConnection ,⊂'AZ' diff --git a/challenge-285/asherbhs/apl/ch-1.apls b/challenge-285/asherbhs/apl/ch-1.apls deleted file mode 100644 index 41e444b9d8..0000000000 --- a/challenge-285/asherbhs/apl/ch-1.apls +++ /dev/null @@ -1,4 +0,0 @@ -NoConnection←{⊃⊃~⍨/↓⍉↑⍵} - -⎕←NoConnection 'BC' 'DB' 'CA' -⎕←NoConnection ,⊂'AZ' diff --git a/challenge-285/asherbhs/apl/ch-2.apl b/challenge-285/asherbhs/apl/ch-2.apl new file mode 100644 index 0000000000..16f7f5427a --- /dev/null +++ b/challenge-285/asherbhs/apl/ch-2.apl @@ -0,0 +1,15 @@ +MakingChange←{ + ⎕IO←0 + n←⍵ + n=0: 1 + t←1↑⍨n+1 + _←{ + c←⍵ + {{t[⍵]+←t[⍵-c]}⍣(⍵≥c)⊢⍵}¨1+⍳n + }¨1 5 10 25 50 + ⊃⌽t +} + +⎕←MakingChange 9 +⎕←MakingChange 15 +⎕←MakingChange 100 diff --git a/challenge-285/asherbhs/apl/ch-2.apls b/challenge-285/asherbhs/apl/ch-2.apls deleted file mode 100644 index 16f7f5427a..0000000000 --- a/challenge-285/asherbhs/apl/ch-2.apls +++ /dev/null @@ -1,15 +0,0 @@ -MakingChange←{ - ⎕IO←0 - n←⍵ - n=0: 1 - t←1↑⍨n+1 - _←{ - c←⍵ - {{t[⍵]+←t[⍵-c]}⍣(⍵≥c)⊢⍵}¨1+⍳n - }¨1 5 10 25 50 - ⊃⌽t -} - -⎕←MakingChange 9 -⎕←MakingChange 15 -⎕←MakingChange 100 -- cgit