diff options
| author | Conor Hoekstra <codereport@outlook.com> | 2024-08-26 10:03:49 -0400 |
|---|---|---|
| committer | Conor Hoekstra <codereport@outlook.com> | 2024-08-26 10:03:49 -0400 |
| commit | 71b64a26b6b231b9aec8214d2f1fd6bf6d9e6c69 (patch) | |
| tree | b7316216e138845b86cd6dc0f21b013867344df8 | |
| parent | fa211fa54e37ad4da511513b1286e0c616e111ce (diff) | |
| parent | a29c794b1595866a50612d3dccd5a1b1255f9217 (diff) | |
| download | perlweeklychallenge-club-71b64a26b6b231b9aec8214d2f1fd6bf6d9e6c69.tar.gz perlweeklychallenge-club-71b64a26b6b231b9aec8214d2f1fd6bf6d9e6c69.tar.bz2 perlweeklychallenge-club-71b64a26b6b231b9aec8214d2f1fd6bf6d9e6c69.zip | |
Merge branch 'master' of github.com:codereport/perlweeklychallenge-club
| -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 |
