diff options
| author | Conor Hoekstra <codereport@outlook.com> | 2024-08-19 09:13:38 -0400 |
|---|---|---|
| committer | Conor Hoekstra <codereport@outlook.com> | 2024-08-19 09:13:38 -0400 |
| commit | a29c794b1595866a50612d3dccd5a1b1255f9217 (patch) | |
| tree | 7ee55dfc821075cc53dee9c34039d0ee027b75d8 | |
| parent | a265dee29c85b49ec7058f3a48feadef1b61e7b7 (diff) | |
| download | perlweeklychallenge-club-a29c794b1595866a50612d3dccd5a1b1255f9217.tar.gz perlweeklychallenge-club-a29c794b1595866a50612d3dccd5a1b1255f9217.tar.bz2 perlweeklychallenge-club-a29c794b1595866a50612d3dccd5a1b1255f9217.zip | |
:sparkles: Week 283 in BQN
| -rw-r--r-- | challenge-283/conor-hoekstra/ch-1.bqn | 10 | ||||
| -rw-r--r-- | challenge-283/conor-hoekstra/ch-2.bqn | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/challenge-283/conor-hoekstra/ch-1.bqn b/challenge-283/conor-hoekstra/ch-1.bqn new file mode 100644 index 0000000000..b2d34a6efe --- /dev/null +++ b/challenge-283/conor-hoekstra/ch-1.bqn @@ -0,0 +1,10 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/283-1.bqn + +UniqueNumber ← ⊑·/1=·≠¨⊔ + +# Tests +•Show UniqueNumber ⟨3, 3, 1⟩ # 1 +•Show UniqueNumber ⟨3, 2, 4, 2, 4⟩ # 3 +•Show UniqueNumber ⟨1⟩ # 1 +•Show UniqueNumber ⟨4, 3, 1, 1, 1, 4⟩ # 3 diff --git a/challenge-283/conor-hoekstra/ch-2.bqn b/challenge-283/conor-hoekstra/ch-2.bqn new file mode 100644 index 0000000000..492b67033b --- /dev/null +++ b/challenge-283/conor-hoekstra/ch-2.bqn @@ -0,0 +1,8 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/283-2.bqn + +DigitCountValue ← (+˝(=⌜⟜↕≠))⊸≡ + +# Tests +•Show DigitCountValue ⟨1, 2, 1, 0⟩ # 1 +•Show DigitCountValue ⟨0, 3, 0⟩ # 0 |
