diff options
| author | Conor Hoekstra <codereport@outlook.com> | 2023-07-22 08:52:19 -0400 |
|---|---|---|
| committer | Conor Hoekstra <codereport@outlook.com> | 2023-07-22 08:52:19 -0400 |
| commit | 2201e4f1fdb918794ded0fb1adc5701b5243ad8f (patch) | |
| tree | 4dbff1c993bff046a3c91b2a0bdd2abd0b0510fd | |
| parent | cf5dc79d14cf4b972022ea0f0c83c62bf5a583fe (diff) | |
| download | perlweeklychallenge-club-2201e4f1fdb918794ded0fb1adc5701b5243ad8f.tar.gz perlweeklychallenge-club-2201e4f1fdb918794ded0fb1adc5701b5243ad8f.tar.bz2 perlweeklychallenge-club-2201e4f1fdb918794ded0fb1adc5701b5243ad8f.zip | |
Week 226 in BQN
| -rw-r--r-- | challenge-226/conor-hoekstra/ch-01.bqn | 5 | ||||
| -rw-r--r-- | challenge-226/conor-hoekstra/ch-02.bqn | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/challenge-226/conor-hoekstra/ch-01.bqn b/challenge-226/conor-hoekstra/ch-01.bqn new file mode 100644 index 0000000000..fc010060ad --- /dev/null +++ b/challenge-226/conor-hoekstra/ch-01.bqn @@ -0,0 +1,5 @@ +ShuffleString ← ⍋∘⊢⊏⊣ + +# Tests +"lacelengh" ShuffleString ⟨3,2,0,5,4,8,6,7,1⟩ # challenge +"rulepark" ShuffleString ⟨4,7,3,1,0,5,2,6⟩ # perlraku diff --git a/challenge-226/conor-hoekstra/ch-02.bqn b/challenge-226/conor-hoekstra/ch-02.bqn new file mode 100644 index 0000000000..92408c3e84 --- /dev/null +++ b/challenge-226/conor-hoekstra/ch-02.bqn @@ -0,0 +1,6 @@ +ZeroArray ← ≠·⍷·0⊸≠⊸/∧ + +# Tests +ZeroArray ⟨1,5,0,3,5⟩ # 3 +ZeroArray ⟨0⟩ # 0 +ZeroArray ⟨2,1,4,0,3⟩ # 4 |
