From 2baaad9e82d388b37310cc6d7acf7605b658cccb Mon Sep 17 00:00:00 2001 From: Mohammad S Anwar Date: Tue, 28 Dec 2021 22:33:28 +0000 Subject: - Added guest contributions by Conor Hoekstra. --- challenge-145/conor-hoekstra/apl/ch-1.apl | 4 ++++ challenge-145/conor-hoekstra/bqn/ch-2.bqn | 9 +++++++++ challenge-145/conor-hoekstra/ch-01.apl | 4 ---- challenge-145/conor-hoekstra/ch-02.bqn | 9 --------- 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 challenge-145/conor-hoekstra/apl/ch-1.apl create mode 100644 challenge-145/conor-hoekstra/bqn/ch-2.bqn delete mode 100644 challenge-145/conor-hoekstra/ch-01.apl delete mode 100644 challenge-145/conor-hoekstra/ch-02.bqn (limited to 'challenge-145') diff --git a/challenge-145/conor-hoekstra/apl/ch-1.apl b/challenge-145/conor-hoekstra/apl/ch-1.apl new file mode 100644 index 0000000000..e48168c64f --- /dev/null +++ b/challenge-145/conor-hoekstra/apl/ch-1.apl @@ -0,0 +1,4 @@ +dotProduct ← +.× + +⍝ Test +1 2 3 dotProduct 4 5 6 ⍝ 32 diff --git a/challenge-145/conor-hoekstra/bqn/ch-2.bqn b/challenge-145/conor-hoekstra/bqn/ch-2.bqn new file mode 100644 index 0000000000..7f2ffd35f8 --- /dev/null +++ b/challenge-145/conor-hoekstra/bqn/ch-2.bqn @@ -0,0 +1,9 @@ +PalindromicTree ← {1↓(⌽≡⊢)¨⊸/˜⍷∾´↑¨↓𝕩} + +# Tests +PalindromicTree "redivider" # ⟨ "r" "redivider" "e" "edivide" "d" "divid" "i" "ivi" "v" ⟩ +PalindromicTree "deific" # ⟨ "d" "e" "i" "ifi" "f" "c" ⟩ +PalindromicTree "rotors" # ⟨ "r" "rotor" "o" "oto" "t" "s" ⟩ +PalindromicTree "challenge" # ⟨ "c" "h" "a" "l" "ll" "e" "n" "g" ⟩ +PalindromicTree "champion" # ⟨ "c" "h" "a" "m" "p" "i" "o" "n" ⟩ +PalindromicTree "christmas" # ⟨ "c" "h" "r" "i" "s" "t" "m" "a" ⟩ diff --git a/challenge-145/conor-hoekstra/ch-01.apl b/challenge-145/conor-hoekstra/ch-01.apl deleted file mode 100644 index e48168c64f..0000000000 --- a/challenge-145/conor-hoekstra/ch-01.apl +++ /dev/null @@ -1,4 +0,0 @@ -dotProduct ← +.× - -⍝ Test -1 2 3 dotProduct 4 5 6 ⍝ 32 diff --git a/challenge-145/conor-hoekstra/ch-02.bqn b/challenge-145/conor-hoekstra/ch-02.bqn deleted file mode 100644 index 7f2ffd35f8..0000000000 --- a/challenge-145/conor-hoekstra/ch-02.bqn +++ /dev/null @@ -1,9 +0,0 @@ -PalindromicTree ← {1↓(⌽≡⊢)¨⊸/˜⍷∾´↑¨↓𝕩} - -# Tests -PalindromicTree "redivider" # ⟨ "r" "redivider" "e" "edivide" "d" "divid" "i" "ivi" "v" ⟩ -PalindromicTree "deific" # ⟨ "d" "e" "i" "ifi" "f" "c" ⟩ -PalindromicTree "rotors" # ⟨ "r" "rotor" "o" "oto" "t" "s" ⟩ -PalindromicTree "challenge" # ⟨ "c" "h" "a" "l" "ll" "e" "n" "g" ⟩ -PalindromicTree "champion" # ⟨ "c" "h" "a" "m" "p" "i" "o" "n" ⟩ -PalindromicTree "christmas" # ⟨ "c" "h" "r" "i" "s" "t" "m" "a" ⟩ -- cgit